Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!EU.net!Germany.EU.net!gomel.knirsch.de!knobel.knirsch.de!andreas From: andreas@knobel.knirsch.de (Andreas Klemm) Newsgroups: comp.os.386bsd.questions Subject: Re: sendmail.cf help please! Date: 16 Aug 1994 22:47:00 GMT Organization: HOME, 41469 Neuss, Germany Lines: 125 Message-ID: <32rfl4$d9@knobel.knirsch.de> References: <CuEK3v.LC7@usenet.ucs.indiana.edu> NNTP-Posting-Host: knobel.knirsch.de X-Newsreader: TIN [version 1.2 PL2] Jim Pitts (pitts@mimosa.astro.indiana.edu) wrote: : Hi all, : I was wondering if I could get some help setting up my uucp mail. I have : managed to get my FreeBSD machine to talk to the uucp host correctly. I can : get mail through uucp as well as copy files. What I can't do is send mail. : I assume this is a problem with the way I have sendmail configured. I must : confess to be more than a bit daunted by the file format of sendmail.cf. : Someone out there -must- have done this already. Is there any help? Something for the FAQ ?! ========================== Go into sendmails source directory: cd /usr/src/usr.sbin/sendmail Go into the cf tree cd cf/cf Make the obj directory first, you need it later... mkdir obj Create a sendmail master configuration file (.mc file). Name it yourname.mc vi yourname.mc Include this: #----------------------------------------------------------------------- divert(-1) # # This is the prototype for a configuration that only supports UUCP. # include(`../m4/cf.m4') VERSIONID(`yourname.mc 1.1') OSTYPE(bsd4.4) FEATURE(mailertable) FEATURE(use_cw_file) FEATURE(nodns) FEATURE(notsticky) define(`confUSERDB_SPEC', /etc/userdb.db)dnl define(`confME_TOO', True)dnl define(`confMIME_FORMAT_ERRORS', False)dnl MAILER(local)dnl MAILER(smtp)dnl define(`UUCP_MAX_SIZE', 1000000)dnl # Maximale Nachrichtengroesse 1MB MAILER(uucp)dnl define(`SMART_HOST', uucp-uudom:smarthost)dnl ^^^^^^^^^^- The UUCP name of your smarthost has to be put in here ! SITECONFIG(uucp.yourname, yourname, U)dnl ^^^^^^^^ ^^^^^^^^ <--- yourname is your machines nodename uname -n #---------------------------------------------------------------------- In the siteconfig directory (.../sendmail/cf/siteconfig) create a file uucp.yourname Put a list of machines into this file to which you have active uucp/mail connection. Generally only the name of your smarthost .... Unknown addresses are routet to your smarthost .... siteconfig/uucp.yourname: #---------------------------------------------------------------------- SITE(nodename_of_your_smarthost) #---------------------------------------------------------------------- Then go again into the cf directory with the mc (master config) files (.../sendmail/cf/cf) and do a make yourname.cf After that you find in .../sendmail/cf/cf/obj a very fine sendmail config file (yourname.cf) that has to be copied to /etc/sendmail.cf Next setup (edit) your /etc/aliases file if you like. After editing this file you should invoke the command newaliases to update the corresponding database file newaliases Then sreate/edit the file /etc/sendmail.cw This file contains alias names of your system (a list of additional names under that your system might receive e-mail): yourname yourname.uucp yourname.domain Then create a file /etc/mailertable: Here you have to say what else (uucp adresses, too) has to be sent to your smarthost ... .uucp uucp-uudom:name_of_your_uucp_smarthost Create the hash table the following way: makemap hash /etc/mailertable.db < /etc/mailertable You do not need to create a frozen config file since sendmail on FreeBSd 1.1 isn't compiled with that option turned on. That should do the trick ! BTW: /usr/src/usr.sbin/sendmail/cf/README contains nice details about this bloody work ;-) Hope it helps Andreas /// -- Andreas Klemm /\/\____ Wiechers & Partner Datentechnik GmbH andreas@knobel.knirsch.de ___/\/\/ andreas@wupmon.wup.de (Unix Support)