With postscreen configuration I've an ldap error when the recipient is not in the ldap (a bad recipient) :

Error :

Mar 16 15:13:09 relais1 postfix/smtpd[23031]: warning: dict_ldap_connect: Unable to bind to server ldap://ldap.domain.fr:389 with dn uid=binduser,o=domain,c=fr: -1 (Can't contact LDAP server)


Without postscreen no error :

Mar 16 16:27:38 relais1 postfix/smtpd[27691]: NOQUEUE: reject: RCPT from nm14.bullet.mail.ird.yahoo.com[77.238.189.67]: 550 5.1.1 <bad-adr...@domain.fr>: Recipient address rejected: User unknown in relay recipient table; from=<adresse-ya...@yahoo.fr> to=<bad-adr...@domain.fr> proto=SMTP helo=<nm14.bullet.mail.ird.yahoo.com> Mar 16 16:27:38 relais1 postfix/smtpd[27691]: disconnect from nm14.bullet.mail.ird.yahoo.com[77.238.189.67]



main.cf configuration identical With postscreen and without postscreen :

relay_recipient_maps = hash:/etc/postfix/aliases.mess, ldap:ldapuserexist, regexp:/etc/postfix/relay_recipients.regexp


# Tables ldap
ldapuserexist_timeout = 20
ldapuserexist_server_port = 389
ldapuserexist_version = 3
ldapuserexist_server_host = ldap.domain.fr
ldapuserexist_bind = yes
ldapuserexist_bind_dn = uid=binduser,o=domain,c=fr
ldapuserexist_bind_pw = password
ldapuserexist_search_base = o=domain,c=fr
ldapuserexist_domain = domain.fr
ldapuserexist_query_filter = (|(mail=%s)(mailAlternateAddress=%s)(mailEquivalentAddress=%s)) ldapuserexist_result_attribute = mail, mailAlternateAddress, mailEquivalentAddress



Le 19/03/2012 13:43, Wietse Venema a écrit :
Wietse:
What are the differences between the smtpd lines with and without
postscreen?  Only the first fields (name, type, private) should
differ.
Stanislas LEVEAU:
smtpd     pass  -       -       -       -       -       smtpd
...
smtp      inet  n       -       n       -       1       smtpd
Well there is your problem.

        Wietse


--
*Stanislas LEVEAU**

*Rectorat de Caen
168, rue Caponière
B.P. 6184
14061 CAEN Cedex
        Direction des Systèmes d'Information de l'Académie de Caen
Département des infrastructures

stanislas.lev...@ac-caen.fr
 Tel : 02.31.30.17.86



Reply via email to