Hi,

I am using Postfix 2.5.5.

I would like to test recipients against a ldap query.
I have 2 mailAlternateAddress attributes for the ldap entry wich mail
attribute is post...@spam3.gm.transpac.fr:
# postmap -q post...@spam3.gm.transpac.fr
ldap:/etc/postfix/ldapUserAccessTest.cf
OK,OK

Having "OK,OK" as a result, I have a warning message in the log file
when I make the test.
May  6 11:29:18 sf-1 postfix/smtpd[16823]: warning: unknown smtpd
restriction: "OK"

and the message is not accepted:
May  6 11:29:18 sf-1 postfix/smtpd[16823]: NOQUEUE: reject: RCPT from
fe-1-data[192.168.200.46]: 451 4.3.5 Server configuration erro
r; from=<a...@hotmail.com> to=<post...@spam3.gm.transpac.fr> proto=ESMTP
helo=<fe-1>


Here below the ldapUserAccessTest.cf file:
#cat  ldapUserAccessTest.cf   
server_host = 10.1.1.64         
server_port = 389
search_base = o=spam3.gm.transpac.fr, o=antipam, o=cd3
bind_dn = cn=root DN
bind_pw = xxxxxxx
version = 3
query_filter =
(&(|(mail=%s)(mailAlternateAddress=%s))(mailUserStatus=active))
result_attribute = mailAlternateAddress
bind = yes
result_filter = OK
expansion_limit = 0

Any idea knowing that the condition is to keep "result_attribute =
mailAlternateAddress" (so not use any other result attribut as for
example "result_attribute = mail" - which I know works) ? 

Thank you.
Alain



Reply via email to