On Sat, 16 Jan 1999, Keith Duthie wrote:
> On Sat, 16 Jan 1999, Raoul Boenisch wrote:
> > So if you use PPP with dynamic address you should really rewrite the From
> > line. The disadvantage is that locally sent mail will first be sent to
> > your ISP and then return on the next mail fetch. I don't have a solution
> > for this yet.
> Perhaps set a sendmail alias for the username? I'm not really familiar
> with sendmail, but I had a look in the O'Reilly bat book about a month
> ago, and from what I can recall, the /etc/aliases file is for this sort of
> thing.
You mean having a "local alias" for every user? I think this is too much
work. I would better like adding network interface specific rewrite in
sendmail or rewrite the From depending on the To.
> > To rewrite the From line I suggest using sendmail's genericstable feature
> > which is perfectly right for this purpose. In your sendmail m4 config file
> > add the following lines:
> >
> > FEATURE(always_add_domain)
> > FEATURE(masquerade_entire_domain)
> > GENERICS_DOMAIN(wondernet.local)
> > GENERICS_DOMAIN(spiral.wondernet.local)
> > FEATURE(genericstable, hash /etc/genericstable)
> >
> > where wondernet should be changed to your local network name. I had to add
> Ah. This is what I wanted to know. If this mail gets through and has a
> rewritten From line, then it worked.
It says: From [EMAIL PROTECTED]
So I guess it worked.
--
Raoul Boenisch, Winkhauser Talweg 165, 45473 Muelheim an der Ruhr, Germany
homepage: http://www.raoul.home.pages.de/ home phone: +49 208 764257