*BSD News Article 47067


Return to BSD News archive

#! rnews 3431 sserve.cc.adfa.oz.au
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!lll-winken.llnl.gov!hookup!usenet.eel.ufl.edu!newsfeed.internetmci.com!news.mathworks.com!uunet!in1.uu.net!news.gun.de!knobel.gun.de!not-for-mail
From: andreas@knobel.gun.de (Andreas Klemm)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Simple UUCP/sendmail config required
Date: 16 Jul 1995 19:25:00 GMT
Organization: Solaris 2.4 research kitchen
Lines: 85
Message-ID: <3ubp2c$a5@knobel.gun.de>
References: <3u9ltn$9tv@noc.tor.hookup.net>
NNTP-Posting-Host: knobel.gun.de
X-Newsreader: TIN [UNIX 1.3 950520BETA PL0]

Greg Schmidt (gschmidt@noc.tor.hookup.net) wrote:
: I need to set up sendmail to work with UUCP on my system (2.0.5-950622).
: I have UUCP set up ok, to the point that it can receive incoming mail just
: fine.  I have been through the FAQ, the handbook, the tutorials, the archive
: of articles (searching on UUCP doesn't work so well, because of all the
: people that have .UUCP as part of their address).  I have come up empty,
: except for a mention of a sample sendmail.cf file that I don't seem to
: have on my system.
: 
: Any help would be appreciated.  I have a mail server that has been down
: since I installed FreeBSD (back in April) and I'm at my wit's end!

------------------------------------------------------------------------

(1) Go into sendmails source directory tree

	cd /usr/src/usr.sbin/sendmail/cf/cf

(2) Make the missing obj directory first, you need it later...

	mkdir obj

(3) Create a sendmail master configuration file (.mc file). 
    Name it yourname.mc

	vi yourname.mc

(4) Contents of the yourname.mc file:

#-----------------------------------------------------------------------
divert(-1)
#
#  This is the prototype for a site with only a uucp connection
#  to the world, where smarthost and uucp relay are the same ...
#  Replace "yourname" with your machines nodename without domain
#  Replace "smarthost" with your uucp neighbours nodename without domain
#  i.e. here is myname "knobel" and my smarthost is "gomel", to which I'm 
#  connected with uucp via dialup modem.

divert(-1)
VERSIONID(`yourname.mc 1.0')

include(`../m4/cf.m4')

OSTYPE(bsd4.4)

FEATURE(nodns)dnl

MAILER(local)dnl
MAILER(smtp)dnl
MAILER(uucp)dnl

define(`UUCP_MAX_SIZE', 2000000)dnl
define(`SMART_HOST', `uucp-dom:smarthost')dnl
define(`UUCP_RELAY', `uucp-dom:smarthost')dnl
#----------------------------------------------------------------------

(5) create the new sendmai.cf file, which will be stored under
    obj/yourname.cf, by typing

	make yourname.cf

(6) After that copy obj/yourname.cf to /etc/sendmail.cf

(7) It's up to you to browse through the systems global aliases
    file ((etc/aliases), where important mail aliases are stored.
    Remember, if you make any changes you have to rebuild the
    alaises database by typing:

	newaliases

(8) BTW: You do not need to create a frozen config file,
    since sendmail on FreeBSD 1.X isn't compiled with that
    option turned on.

(9) ``Hot files'' with more information (see sendmail src tree):
    FAQ KNOWNBUGS RELEASE_NOTES cf/README



--				
andreas@knobel.gun.de        /\/\___    Wiechers & Partner Datentechnik GmbH
   Andreas Klemm         ___/\/\/          - Support Unix - akl@wup.de - 
     (at home)                          phone: +49 2173 3964 -161  fax: -222
apsfilter - irgendwie clever <--> sunsite.unc.edu /pub/Linux/Incoming/aps-49.tgz