From: Amos Gouaux (+)
Date: Tue Oct 01 2002 - 14:16:10 EDT
>>>>> On Tue, 1 Oct 2002 09:44:47 -0400 (EDT),
>>>>> <> writes:
> Interestingly enough (and correctly I believe) ldapsource_domain is a
> *string* matchlist not a *domain* matchlist, so no parent domain matching
> via ".parent" or "parent" is available. If you absolutely must have all
> subdomains of a domain mapped via LDAP and need ldapsource_domain to keep
> out queries for all other domains, a regexp map in the matchlist
> definition may do the job OK:
> ldapsource_domain = pcre:/etc/postfix/ldap_domains
> ldap_domains:
> /^(\S+\.)?example\.com$/ match example.com and all subdomains
Excellent! Thank you very much!
After playing around, I also realized that you can use a simple
file that contains the various domains, though I imagine regexp
is more efficient for a really long list.
ldapsource_domain = /etc/postfix/ldap_domains.txt
ldap_domains.txt:
subdom1.example.com
subdom2.example.com
example.com
Hmmm... perhaps either or both of these mechanisms might be
suitable for masquerade_domains? Or maybe it's best to keep that
sort of fanciness in canonical map.
-- Amos - To unsubscribe, send mail to with content (not subject): unsubscribe postfix-users
|
|
|