OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
+extentsion, virtual_mailbox_maps and LDAP

From: Cap (daCaptainrocketmail.com)
Date: Tue Oct 11 2005 - 10:51:35 CDT


Hello,

I'm stuck with a problem concerning user+extdomain.tld
addressing and LDAP lookups.

My config:
postfix 2.2

in main.cf:
virtual_mailbox_maps =
        ldap:/etc/postfix/ldap-test.cf

ldap-test.cf:
server_host = localhost
bind = no
search_base = dc=mailboxusers,dc=missura,dc=de

According to virtual(8) manpage the ldap lookup is the same as
in a textfile: first user+extdomain.tld, then userdomain.tld,
finally domain.tld. But when I look at the logs the
userdomain.tld step seems to be missing.

I sent a testmail to marcell+extinternetfreaks.de and this is
what my log says to it:

Oct 11 17:11:12 squishy slapd[17647]: conn=64 fd=12 ACCEPT from
IP=127.0.0.1:7181 (IP=0.0.0.0:389)
Oct 11 17:11:12 squishy slapd[17647]: conn=64 op=0 SRCH
base="dc=mailboxusers,dc=missura,dc=de" scope=2 deref=0
filter="(mailacceptinggeneralid=marcell+extinternetfreaks.de)"
Oct 11 17:11:12 squishy slapd[17647]: conn=64 op=0 SRCH
attr=maildrop
Oct 11 17:11:12 squishy slapd[17647]: <=
bdb_equality_candidates: (mailacceptinggeneralid) index_param
failed (18)
Oct 11 17:11:12 squishy slapd[17647]: conn=64 op=0 SEARCH RESULT
tag=101 err=0 nentries=0 text=
Oct 11 17:11:12 squishy slapd[17647]: conn=64 op=1 SRCH
base="dc=mailboxusers,dc=missura,dc=de" scope=2 deref=0
filter="(mailacceptinggeneralid=internetfreaks.de)"
Oct 11 17:11:12 squishy slapd[17647]: conn=64 op=1 SRCH
attr=maildrop
Oct 11 17:11:12 squishy slapd[17647]: <=
bdb_equality_candidates: (mailacceptinggeneralid) index_param
failed (18)
Oct 11 17:11:12 squishy slapd[17647]: conn=64 op=1 SEARCH RESULT
tag=101 err=0 nentries=0 text=

I used the default query_filter and result_attribute on purpose.
The LDAP entry exists, all attributes (mailacceptinggeneralid
and maildrop) exist and are defined.

Am I doing something wrong here or why doesn't it work right?
And how else could I search for userdomain.tld _without_ the
extension?

Thanks,
Cap

                
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/