Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!emory!utkcs2!moore From: moore@cs.utk.edu (Keith Moore) Newsgroups: comp.mail.sendmail Subject: Re: RFC-compliant UUCP mail Message-ID: <1990Jul26.024407.7069@cs.utk.edu> Date: 26 Jul 90 02:44:07 GMT References: <730@logicon.com> Sender: news@cs.utk.edu (USENET News System) Reply-To: moore@cs.utk.edu Organization: Univ. of Tenn. Computer Science, Knoxville Lines: 56 In article <730@logicon.com>, Makey@Logicon.COM (Jeff Makey) writes: > I have decided to toe the line and make mail I send via UUCP conform > to RFC 796 ("UUCP Mail Interchange Format Standard"). I have looked > closely at the sendmail 5.61 sources and I have determined that there > is no way to set up my .cf file to output a pure !-path in the From_ > line in conjunction with an RFC 822 compliant From: line. Am I > correct? Does 5.64 provide a workaround? Will the IDA enhancements > do the trick? > > If I am not clear, I want to output > > From host.domain!user Wed Jul 25 16:39:22 1990 remote from mysite > From: user@host.domain > > instead of > > From host.domain!user Wed Jul 25 16:39:22 1990 remote from mysite > From: mysite!host.domain!user > > or > > From user@host.domain Wed Jul 25 16:39:22 1990 remote from mysite > From: user@host.domain > > Thanks. > You are correct. For UUCP mail, the envelope addresses should be pure bang paths and the (optional) message headers should be RFC822 compliant (ideally with real domain names) if they appear at all. Here's how to do this with sendmail. This isn't to be taken verbatim, just as a guideline: * The easy way to do this is to get IDA sendmail, which lets you have seperate rewrite rules for envelope addresses and headers addresses. Vanilla sendmail (including 5.64) treats these the same. * If you can't or don't want to use IDA sendmail, you can effect this change with a shell script. Change the "uucp" mailer description so that, instead of running uux, you run this shell script. Have your sendmail rewrite rules generate domains instead of bang paths. The shell script uses sed (or maybe expr) to rewrite each of the addresses (including both sender and recipient) from domains to bang paths. Also, pass the sender's address to the shell script, which prepends the From line (instead of sendmail). Finally, pass the rewritten recipient list (via the command line) and the message with the From line prepended (via standard input) to uux. Sure this is ugly, but it's not terribly difficult to set up, and it's easy to test your shell script independently of sendmail. Keith Moore Internet: moore@cs.utk.edu University of Tenn. CS Dept. BITNET: moore@utkvx 107 Ayres Hall, UT Campus UT Decnet: utkcs::moore Knoxville Tennessee 37996-1301 Telephone: +1 615 974 0822