Le 17/08/2010 15:03, Douglas Maus a écrit :
How do the domains specified in "virtual_mailbox_domains" in main.cf
and the "domain" parameter in an LDAP table configuration
differ and interact?

virtual_mailbox_domains is a postfix parameter that staes which domains are to "virtual mailbox domains", that is:
- postfix accepts to relay to these domains from any client
- address validation uses virtual_mailbox_maps
- the default transport is "virtual"

parameters in the ldap config file are a completely different thing: they specify how the ldap query should be performed. this doesn't say anything about how the result will be used (postfix can use ldap for a lot of different things, that have nothing to do with virtual mailboxes).



[snip]


What I'd like to understand is the nuance of what
the main.cf parameter "virtual_mailbox_domains"
really means, and why it didn't restrict the domain
for virtual lookups.


your last question is unclear. virtual_mailbox_domains doesn't restrict anything. it specifies the list of domains that are to be delivered via "virtual" (and by default, postfix will accept mail to these domains from any client + postfix will use virtual_mailbox_maps to validate addresses in such domains).

relay control is performed by smtpd_recipient_restrictions. by default:
- postfix accepts relay from mynetworks (permit_mynetworks)
- postfix accepts mail to domains listed in: mydestination, relay_domains, virtual_mailbox_domains and virtual_alias_domains
- mail to other domains is rejected (reject_unauth_destination)


Please take a look at the welcome message you got when you subscribed. if you lost it, it talked about reading
    http://www.postfix.org/DEBUG_README.html
and in particular:
    http://www.postfix.org/DEBUG_README.html#mail
the goal of this isn't to annoy you. the goal is to maximize your chances of getting help quickly and efficiently; as well as to enhance the docs.

Reply via email to