On Tue, Nov 27, 2012 at 03:49:42PM +0000, Jim Nalepa - US wrote:
> Thanks for the prompt response.
> We are heavily invested in ldap (used centrally throughout network)
> and would hate to replicate, and maintain two instances of the db.
>
> Any other thoughts?
The standard advice is:
- Use LDAP for virtual_alias_maps and other rewriting done by
cleanup(8)
- Use indexed files for transport_maps and other lookups made
by trivial-rewrite(8).
If you want different users in the same domain to be delivered to
different mailbox servers and want to follow this advice, you use
virtual_alias_maps (via LDAP is fine) to rewrite:
mail: [email protected]
mailalternateaddress: [email protected]
mailalternateaddress: [email protected]
maildrop: [email protected]
any one of a user's email addresses to the unique address of the
underlying mailbox:
domain = example.com
query_filter = (|(mail=%s)(mailalternateaddress=%s))
result_attribute = maildrop
fancy features for handling LDAP lists are described in LDAP_README.html
and ldap_table(5).
The transport table is then largely unnecessary, but in some cases
you want a common first hop that depends on the mailbox hostname,
in which case something like:
imap1.example.com smtp:mailhub.example.com
...
can be handled via small indexed tables on each MTA.
--
Viktor.