On Wednesday 05 August 2009 05:37:12 Yeray Gutiérrez Cedrés wrote:
> If it's right and virtual_mailbox_domain is not set, so its
> default value is virtual_mailbox_maps (wich lists an LDAP
> database), Postfix would perform twice the same LDAP lookup
> (one time in qmgr(8) and another time in virtual(8)).

Minor nitpick: that is not the same lookup. The _maps lookup is for
u...@example.com, the domain lookup is merely "example.com".

> I suppose that I'm wrong with that, but I can't see how does this
> behave. If I were right, that would mean that's much better to
> list virtual domains in virtual_mailbox_domains with a simple hash
> than just leaving it to its default value.

Indeed, the domain class definitions (virtual_*_domains, relay_domains
and mydestination, see ADDRESS_CLASS_README) are very important; in
general not something I would want to trust to an external daemon. If
they change so frequently as to benefit from being maintained in an
external database, your site is so large that you should have some
redundancy for both the database and the MTA.

Note that there's no reason why virtual_mailbox_maps cannot also be a
hash: lookup.
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

Reply via email to