It is because I am in a situation where I have domain aliases (AliasedObjectName) and inetcanonicaldomainname. I don't want to remove the aliases, I would like to rewrite them on the MTA before it gets to the STORE. And the ldapsearch return sometimes 2 entries. If there is a way to rewrite the domain part of the mail with a flat file or some rewriting rules I could solve my problem without rebuilding the ldap architecture, the provisioning tools and moving-renaming mailboxes.
Thanks for the fast response.
What would be the recipe for rewriting the domain? I tried to modify imta.cnf file wothout satisfying result.
Only vacation response to mail that is sent to aliased domain would get broken, wouldn't it?
Does the vacation mail originate from the Store server (mailhost value)?
Thanks in advance?
Hi,
Rewriting a domain is pretty straight-forward. You can do this through the use of a rewrite rule e.g.
subdomain.domain$E$F$U%domain@localhost
This will cause an email address such as shane@subdomain.domain to be rewritten to shane@domain. The $E$F means that the change only applies to the 'e'nvelope 'forward' address a.k.a. the envelope to: address.
Regards,
Shane.
Hi,
Here is a part of the output of a rewrite on my dirsync msg server. The domain pop.test.net is a aliased domain of test.net
./imsimta test -rewrite earcham@pop.test.net
...
header To: address= eric.archambault@test.net
header From: address= eric.archambault@test.net
envelope To: address= earcham@test.net (route (mta1.test.com,mta1.test.com)) (host test.net)
envelope From: address = eric.archambault@test.net
and on the msg server in Direct Ldap mode:
header To: address= eric.archambault@test.net
header From: address= eric.archambault@test.net
envelope To: address= earcham@pop.test.net (route (newmta1.test.com,newmta1.test.com)) (host pop.test.net)
envelope From: address = earcham@pop.test.net
At the best I would like to keep the same behavior of the 'Envelope To'(from dirsync mode to DirectLdap mode).
I'd rather like to set something in the configuration instead of maintaining a domain.rules file or imta.cnf file (because we have many hosted domains with many aliased domain)
Thanks,
Message was edited by:
Forum_DS5.x