[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 user1@originaldomain.com and user1@newdomain.com 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 user@newdomain.com gets translated to
> user@originaldomain.com. Is that intentional? Without having
> reviewed the RFCs on the matter, I would contend that the "From:" header
> should *not* be so rewritten.
Semi-intentional behaviour.
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 user@elsewhere.com where
> elsewhere.com is not listed in the localnames file, no such rewriting
> occurs.
>
> Sparc Solaris 7 running zmailer 2.99.53-pre1.
> --
> Devin Reade gdr@gno.org
--
/Matti Aarnio <mea@nic.funet.fi>