Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!zaphod.mps.ohio-state.edu!usc!apple!bionet!arisia!roo!Xerox.COM!Lennart_Lovstrand.EuroPARC From: Lennart_Lovstrand.EuroPARC@Xerox.COM Newsgroups: comp.mail.sendmail Subject: Re: Need to fake return machine address Message-ID: <315@roo.UUCP> Date: 25 May 90 13:42:23 GMT References: <1990May21.181455.22689@mozart.amd.com> <106@tdatirv.UUCP> Sender: news@parc.xerox.com Organization: Rank Xerox EuroPARC, Cambridge, UK. Lines: 65 In article <106@tdatirv.UUCP> swf@tdatirv.UUCP writes: >In article <1990May21.181455.22689@mozart.amd.com> mikel@mozart.amd.com >(Michael W. Wellman) writes: >> I've several machines which are used interactively >>and we wish to have all mail sent only to one machine. So, assuming that >>foo is the mail machine, if user@bar sends mail to user1, I want: > >>1) the mail to be routed automatically to user1@foo >>2) the return addresses to be configured so that the return address shows >> up as user@foo. >> > I would also be interested in this. We have a very similar situation >here. And it makes for some real difficulties with external mail. Hi, maybe this helps. The configuration file in the IDA Sendmail Kit has had this feature for a long time in two forms: The general version uses a separate "GENERICFROM" database that maps arbitrary physical addresses (even non-local) to logical addresses for all header senders. The database is in turn derived from an extended form of the aliases database (called xaliases). For example, an entry like: lel@ida, lenlo@ida, Lennart.Lovstrand@ida: <> L-LOVSTRAND@LISBET, < lel@obelix, < LENNART@HAZEL, <> lenlo would mean that any mail coming from either of L-LOVSTRAND@LISBET, lel@obelix, LENNART@HAZEL, or lenlo on the local host will be rewritten to have a sender of lel@ida.liu.se. (Conversely, any mail to lel@ida, lenlo@ida, or Lennart.Lovstrand@ida will be delivered to L-LOVSTRAND@LISBET and lenlo on the local host.) While this feature relies on IDA's generic DBM support, you may be able to use Sun's YP macros as a substitute. The simpler version defines a set of hosts which are to be hidden behind the mailer's hostname. Any sender address coming from a user on one of these hosts will be rewritten as user@$j. The recipe for this goes somewhat like this: FH/etc/hosts.equiv (or whatever file you want to use) S5 (or S1 on non-IDA Sendmails) ... # Hide these nodes using our own name R$+@$=H $: $1@$j ... All of the above substitutions are performed in ruleset 5 in IDA Sendmail, which is the header sender specific ruleset. In a normal sendmail, it would have to go into ruleset 1, which serves both envelope and header senders. -------- On the side, I really wish people wouldn't set "Distribution: usa" on issues that aren't specifically limited to the US. I generally hate receiving mail or news related to someone wanting to sell their car in some remote part of the world, but I also dislike being cut off from an interesting information flow for no particular reason. Please let's try and keep distributions to be meaningful. Cheers, -- --Lennart Rank Xerox EuroPARC, 61 Regent St, Cambridge, CB2 1AB, England