[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rewriting the domain on outbound mail
On Tue, Jun 13, 2000 at 05:11:28PM -0600, Devin Reade wrote:
> One of the zmailer installations that I maintain recently split off a
> new company and consequently now has a second domain. Both companies
> are using the same MTA and MDA, and the expected behavior is that for
> inbound traffic email@example.com and firstname.lastname@example.org will
> go to the same mailbox. Therefore, I just edited the localnames
> file thus:
> .originaldomain.com originaldomain.com
> .newdomain.com originaldomain.com
> originaldomain.com originaldomain.com
> newdomain.com originaldomain.com
> This gives the expected behavior, but a few days after making the change
> an interesting side effect was noticed. It would appear that zmailer
> rewrites the "From:" header in outbound mail such that anyone trying
> to send mail as email@example.com gets translated to
> firstname.lastname@example.org. Is that intentional? Without having
> reviewed the RFCs on the matter, I would contend that the "From:" header
> should *not* be so rewritten.
If you change the right-hand side data for "*newdomain.com"
keys to be "newdomain.com", then (naturally) it won't be
translated to "originaldomain.com"
> FWIW, if the user tries to send mail as email@example.com where
> elsewhere.com is not listed in the localnames file, no such rewriting
> Sparc Solaris 7 running zmailer 2.99.53-pre1.
> Devin Reade firstname.lastname@example.org
/Matti Aarnio <email@example.com>