OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: masquerade problem
From: Jacolek (jacolekgo2.pl)
Date: Tue May 02 2000 - 18:55:10 CDT


Hello,

here is a little explanation of what i have to deal with:

lets assume i run test.com domain

test.com - mx points to mail.test.com
mail.test.com is a CNAME to postfix.test.com

virtual-1.test.com - mx points to mail.test.com
virtual-2.test.com - mx points to mail.test.com

but i also have:

subdomain.test.com - mx points to sendmail.subdomain.test.com

postfix.test.com configuration (not all ofcourse):
mydomain = test.com
myhostname = postfix.test.com
masquerade_domains = $mydoamin

The story begins:
1) when i try to send mail from usersubdomain.test.com to usertest.com
postfix rewrites From: and To: entries ?! so usertest.com receives mail
from usertest.com ?!

funny thing happen when i've sent mail to non existing user on test.com,
the sender (user) didn't get any error message, because From:
usersubdomain.test.com has been rewritten to usertest.com, who btw.
received error message :)

2) when i try to send mail to aliastest.com (alias points to user)
postfix rewrites that to usertest.com, so that usertest.com receives
mail addressed to usertest.com not to aliastest.com ?!

Are those situations desired or not ?

Please help my solve this problem, i want to rewrite all outgoing
messages, but not incoming ones. I want to rewrite
virtual-1,virtual-2,postfix to test.com. I want my postfix do exactly
the same staff as my sendmail did (with masqerade_envelope).

I just don't see any reason in rewriting recipient address, i would want
to know to which address message has been sent (was it an aliastest.com
or usertest.com or userpostfix.test.com).

Thanks in advance,

        Jacolek.