Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 +MULTI+2.11; site stc.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!ukc!stc!news From: jim@hwcs.UUCP Newsgroups: net.mail Subject: Re: Yet another Sendmail problem Message-ID: <233@stc-a.stc.UUCP> Date: Tue, 30-Apr-85 18:19:30 EDT Article-I.D.: stc-a.233 Posted: Tue Apr 30 18:19:30 1985 Date-Received: Thu, 2-May-85 06:40:12 EDT References: <535@spp2.UUCP> <749@ihnp4.UUCP> <200@stc-a.UUCP> Sender: news@stc.UUCP Reply-To: jim@hwcs.UUCP Organization: Herriot Watt University, CS dept Lines: 43 Xpath: stc stc-a Posted for Jim Crammond @ hwcs.UUCP by A.Macpherson @ stc.UUCP > > This coupling can be avoided! It is caused by $g being expanded/ripped > apart to form the "UGLY UUCP From" line, but.. 4.2 rmail can accept > UGLY UUCP lines, or ``Bang Notation'' From-space lines. If you are > trying to stick to RFC822 for the From: part of the headder by using > the "suucp" mailer (u@h), scrap the 'U' flag in the mailer definition, > and redefine the 'l' macro: > > DlFrom $w!$f $d > Sorry, but this only works if ruleset 3 leaves uucp addresses in bang form. In case you didn't know this, $f is run through rulesets 3,1 and 4. The result is then passed through 3,1,S and 4 (where S is the per-mailer-sender-rewrite-rule) and this is set to $g. 822 headers which are flagged as H_FROM (e.g. From, Sender, Return-Path) are run through 3,1,S and 4 again so a typical From: line will have travelled through 3,1,4,3,1,S,4,3,1,S and 4. Bizarre isn't it. My solution to this is to define macro 'l' as: DlFrom $g $d remote from $U where the uucp ruleset rewrites $g in total bang form (no '@'s or '%'s) sticking the local *domain* on if there isn't one, and defining $U as the uucpname, e.g. >From hwcs.uucp!jim remote from hwcs This does mean the From: line says "hwcs.uucp!jim" but that's really the best sendmail can do. -Jim. p.s. please post this to the net if you think its worth it, cstvax hasn't got its act together with sending news to kent just now. p.p.s you will here more on my sendmail quite soon - it gateways to janet!!