[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rewriting the domain on outbound mail



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.

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