Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!ut-sally!ut-ngp!shell!soma!sob From: sob@soma.UUCP (Stan Barber) Newsgroups: net.mail Subject: Re: Need some subtle help.... Message-ID: <763@soma.UUCP> Date: Wed, 12-Feb-86 14:42:11 EST Article-I.D.: soma.763 Posted: Wed Feb 12 14:42:11 1986 Date-Received: Fri, 14-Feb-86 06:29:04 EST References: <1134@adobe.UUCP> Reply-To: sob@soma.UUCP (Stan Barber) Distribution: net Organization: Neurology, Baylor College of Medicine, Houston, Tx Lines: 39 I usually do this at the level of the mailer section of the sendmail.cf. The S= and R= fields in the mailer definition point at rules to rewrite From: and To: to your specifications. What I would do is define a class of hosts with the C macro and then use a rule like this. #define Class of special hosts CS host1 host2 host3 #begin rewriting rule to take a specila host name out # this is probably more than actually has to be done # comments welcome # remembr the $w is defined as your local hostname S31 R$=w!$+ $2 strip local name R$*@$=w $1 strip local name R$=S!$+ $2 strip special name R$*@$=S $1 strip special name R$*<@$=S> $1 strip special name R$*<@$=S.$-> $1 strip special name R$*<@$->$* $1<@$2.UUCP>$3 resolve abbreviations # special case for UUCP mailer, may be different for ARPA R$+ $:$w!$1 Anyway, this is the rewrite I use for the From: field. Example mailer Muucp, P=/usr/bin/uux,F=sDFuUM,S=31, A=uux -a$g -gC $h!rmail ($u) Hope this is helpful. -- Stan uucp:{shell,rice,drilltech}!soma!sob Opinions expressed Olan ARPA:sob@rice.arpa here are ONLY mine & Barber CIS:71565,623 BBS:(713)660-9262 noone else's.