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: Attention: mail loops ! corrected sendmail 8.6.* *UUCP* configuration Date: 25 Aug 1994 11:36:34 GMT Organization: HOME, 41469 Neuss, Germany Lines: 96 Message-ID: <33hvo2$to@knobel.knirsch.de> NNTP-Posting-Host: knobel.knirsch.de Summary: corrected guide to setup mail over uucp to a smarthost Keywords: sendmail uux uucp smarthost uucp relay gateway X-Newsreader: TIN [version 1.2 PL2] Hello (I hope Dave Burgess is listening, too ?!) In the past I helped out some people with a sendmail master configuration file that should send everything via modem and UUCP to a ``smarthost''. Unfortunaly I detected, that things didnt't work properly, when replying to an uucp (bang "!") path. In that case your own machines name was appended to the recipients address ("xxx!yyy!zzz@yoursite") which causes MAIL LOOPS ... :-( The sendmail developer team helped me to solve the problem. Thanks ! Now things are working correct ... and the configuration is at least simpler than before and includes not so many steps (no need for a sendmail.cw and a mailertable file). Here are the new instructions how to setup a mail connection with one modem using uucp to an uucp smarthost (UUCP_RELAY): ------------------------------------------------------------------------ (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 That should do the trick ! Dave, please take this one for your FAQ, have mercy, that the first one was not 100% OK ;-) Have fun Andreas /// -- Andreas Klemm /\/\____ Wiechers & Partner Datentechnik GmbH andreas@knobel.knirsch.de ___/\/\/ andreas@wupmon.wup.de (Unix Support)