Hi
I've an ldap error with postscreen 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)
When there are not postscreen, no problem.
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]
An idea?
_Postfix configuration with Postscreen :_
main.cf configuration file :
postscreen_access_list =
permit_mynetworks,cidr:/etc/postfix/postscreen_access.cidr
postscreen_blacklist_action = drop
postscreen_dnsbl_sites =
zen.spamhaus.org*3
dnsbl.njabl.org*2
bl.spameatingmonkey.net*2
dnsbl.ahbl.org
bl.spamcop.net
dnsbl.sorbs.net
postscreen_dnsbl_threshold = 3
postscreen_dnsbl_action = drop
/etc/postfix/postscreen_access.cidr
...
209.198.176.0/20 reject
209.205.192.0/19 reject
209.205.224.0/20 reject
209.213.48.0/20 reject
...
master.cf configuration file :
smtp inet n - n - 1 postscreen
dnsblog unix - - n - 0 dnsblog
tlsproxy unix - - n - 0 tlsproxy
smtpd pass - - - - - smtpd
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
J'ai configuré postscreen avec la configuration suivante :
content_filter = smtp-amavis:[127.0.0.1]:10024
_postfix configuration with no postsreen:
_
master.cf :
smtp inet n - n - 1 smtpd
main.cf
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
J'ai configuré postscreen avec la configuration suivante :
content_filter = smtp-amavis:[127.0.0.1]:10024
I've you have an idea?
regards