Jean-Michel Dault
17 years ago
Hello all!
I'm trying to convert a large organization (80,000 email entries, 72
domains/subdomains) from Sendmail to Postfix, and I've hit a brick wall.
They're using the following schema: http://www.sendmail.org/m4/laser.txt
Basically, Sendmail does an LDAP search with
(&(objectClass=inetLocalMailRecipient)(mailLocalAddress=%0))
and returns "mailRoutingAddress" and "mailHost". It then rewrites the
envelope to the mailRoutingAddress and sends it via smtp to mailHost.
I've read all the Postfix documentation I could find, and googled
extensively, but I can't duplicate *exactly* the behavior.
The closest way I found is to do a first rewrite with LDAP
virtual_alias_maps using "mailRoutingAddress" as the result_attribute.
Then, I use transport_maps to search for the "mailRoutingAddress", and
use "mailHost" with result_format = smtp:%s.
However, this assumes that the mailRoutingAddress is a unique ID, which
is not the case. In such a large organization with many departments with
different types of mail servers (Unix/Linux/Windows), and multiple
migrations, you have different servers covering the same domains.
The problem is that once you've rewritten the address once, you can't
use the "original" mail address to make a new search, like Sendmail
does.
Is there a way in postfix to either:
1) use the "orig_to" in an LDAP request instead of the "to" address?
2) do *both* rewrite and transport at the same time (maybe using
trivial-rewrite "resolve" request)?
What I would need is a map like this:
***@domain ***@realdomain smtp:server.otherdomain
Thanks in advance!
I'm trying to convert a large organization (80,000 email entries, 72
domains/subdomains) from Sendmail to Postfix, and I've hit a brick wall.
They're using the following schema: http://www.sendmail.org/m4/laser.txt
Basically, Sendmail does an LDAP search with
(&(objectClass=inetLocalMailRecipient)(mailLocalAddress=%0))
and returns "mailRoutingAddress" and "mailHost". It then rewrites the
envelope to the mailRoutingAddress and sends it via smtp to mailHost.
I've read all the Postfix documentation I could find, and googled
extensively, but I can't duplicate *exactly* the behavior.
The closest way I found is to do a first rewrite with LDAP
virtual_alias_maps using "mailRoutingAddress" as the result_attribute.
Then, I use transport_maps to search for the "mailRoutingAddress", and
use "mailHost" with result_format = smtp:%s.
However, this assumes that the mailRoutingAddress is a unique ID, which
is not the case. In such a large organization with many departments with
different types of mail servers (Unix/Linux/Windows), and multiple
migrations, you have different servers covering the same domains.
The problem is that once you've rewritten the address once, you can't
use the "original" mail address to make a new search, like Sendmail
does.
Is there a way in postfix to either:
1) use the "orig_to" in an LDAP request instead of the "to" address?
2) do *both* rewrite and transport at the same time (maybe using
trivial-rewrite "resolve" request)?
What I would need is a map like this:
***@domain ***@realdomain smtp:server.otherdomain
Thanks in advance!
--
Jean-Michel Dault <***@revolutionlinux.com>
Révolution Linux inc.
Jean-Michel Dault <***@revolutionlinux.com>
Révolution Linux inc.