Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!sol.ctr.columbia.edu!xlink.net!scsing.switch.ch!swidir.switch.ch!univ-lyon1.fr!itesec!keltia.frmug.fr.net!not-for-mail From: roberto@keltia.frmug.fr.net (Ollivier Robert) Newsgroups: comp.os.386bsd.questions Subject: Re: Need sendmail.cf for NetBSD Date: 10 Jun 1994 01:33:31 +0200 Organization: A Happy FreeBSD-current Usenet Site Lines: 61 Message-ID: <2t88sp$4s7@keltia.frmug.fr.net> References: <2t7kns$sgi@spock.dis.cccd.edu> Reply-To: roberto@hsc.fr.net (Ollivier Robert) NNTP-Posting-Host: keltia.frmug.fr.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In article <2t7kns$sgi@spock.dis.cccd.edu>, Michael Peer <mpeer@cccd.edu> wrote: >I have internet connection and all non local mail goes off to remote >hub so routing is easy, but trying to build one from O'Reily SENDMAIL >book is not going very fast. Well, I suppose you have sendmail 8.6.*. Go into /usr/src/usr.sbin/sendmail/cf/cf. You'll find a lot of .mc files. You'll start y writing a .mc-type file and process it though m4(1) in order to get your .cf file. We'll forget UUCP as you have Internet (I wish I were in your case...). You can take that one for example. The other files in cf/cf are good examples too. ------------------------------------------------------------ include(`../m4/cf.m4') VERSIONID(`@(#)keltia.mc 1.5 (roberto) 5/18/94')dnl OSTYPE(bsd4.4)dnl MAILER(local)dnl MAILER(smtp)dnl FEATURE(redirect)dnl FEATURE(always_add_domain)dnl define(`MAIL_HUB', esmtp:your_mail_relay_site)dnl define(`confDOMAIN_NAME', `$w.$m')dnl define(`confMIME_FORMAT_ERRORS',`False')dnl define(`confCOPY_ERRORS_TO', `Postmaster')dnl define(`confAUTO_REBUILD', `True')dnl define(`confCHECKPOINT_INTERVAL', 4)dnl define(`confME_TOO', `True')dnl define(`confPRIVACY_FLAGS', `authwarnings,noexpn,noreceipts')dnl define(`confMESSAGE_TIMEOUT', `5d')dnl ------------------------------------------------------------ That do "m4 your_file.mc > your_file.cf". Shut down sendmail if it was running and "cp your_file.cf /etc/sendmail.cf. Then start sendmail in test mode : sendmail -bt -d type a few rules to see if all is well. You may want to test those ones: 3,0 root 3,0 root@site 3,0 root@site.with.fdqn When everything is well, start sendmail in /etc/rc as usual. You should be able to send/receive mail. This explanation is very concise but I cannot reproduce the Bat book here. I think it is a very good book albeit en heavy one on sendmail ! -- Ollivier ROBERT roberto@hsc.fr.net Hervé Schauer Consultants Ollivier.Robert@keltia.frmug.fr.net PERL / MIME / PGP 2.6ui FreeBSD keltia 1.1.0(Current) CURRENT_099#0 i386