Hi,

On Mon, Oct 27, 2014 at 08:13:10AM -0500, Chad M Stewart wrote:
> query_filter = (&(ObjectClass=dNSDomain)(dc=%2))
[...]
> [root@mta03 /opt/local/etc/postfix]# postmap -v -q balius 
> ldap:/opt/local/etc/postfix/ldap_virtual_mailbox_domains.cf 

I guess, since you used %2 in the query_filter, it will be the second component 
from the right,
eg for "balius.com" %1 is com, and %2 is balius. Thus, to test this, you may 
need the postmap
with -q balius.com instead of just balius (what you did). If you query just 
balius, it will be
%1 (and not %2, what you use in your query_filter).

But I can be wrong here.

Also, for me, it's a bit odd to use ldap filter without the TLD itself (with a 
common and fixed
search base), then how can you see the difference between eg balius.net and 
balius.com? So maybe
this is also a good idea in your ldap_virtual_mailbox_domains.cf file:

search_base = dc=%1,dc=coyp

But feel free to correct me, if I misunderstand something here.

Reply via email to