Hi, I'm running postfix with a ldap vmailbox database for incomming mails.
The problem is that I'm receiving mails to non existent accounts, or , with an accented (non ascii) character and instead of rejecting the mail postfix is replying the client with a 451 error, here is the session transcript, with modified domains for privacy reasons: Transcript of session follows. Out: 220 mail.example.com ESMTP In: EHLO agamemnon.external.com Out: 250-mail.example.com Out: 250-PIPELINING Out: 250-SIZE 20480000 Out: 250-ETRN Out: 250-STARTTLS Out: 250-AUTH PLAIN LOGIN Out: 250-ENHANCEDSTATUSCODES Out: 250-8BITMIME Out: 250 DSN In: STARTTLS Out: 220 2.0.0 Ready to start TLS In: EHLO agamemnon.external.com Out: 250-mail.example.com Out: 250-PIPELINING Out: 250-SIZE 20480000 Out: 250-ETRN Out: 250-AUTH PLAIN LOGIN Out: 250-ENHANCEDSTATUSCODES Out: 250-8BITMIME Out: 250 DSN In: MAIL FROM:<u...@external.com> Out: 250 2.1.0 Ok In: RCPT TO:<"?myuser"@example.com> Out: 451 4.3.0 < myu...@example.com>: Temporary lookup failure In: QUIT Out: 221 2.0.0 Bye Additionaly, on the postfix log I can see: Mar 26 15:44:17 calipso postfix/smtpd[27237]: warning: dict_ldap_lookup: Search error 34: Invalid DN syntax And on the LDAP server I'm getting: Mar 26 15:44:17 sanson slapd[1688]: conn=204424 op=3 do_search: invalid dn (uid=<CD>myuser,ou=users,dc=example,dc=com) As you can see, the recipient address is malformed, but postfix is replying with the wrong error code, although I think this may be more related to ldap problem than to a postfix one. here is the vmailbox map config file: server_host = ldapserver.local search_base = uid=%u,ou=users,dc=example,dc=com query_filter = (&(mail...@example.com)(memberOf=cn=service_email,ou=groups,dc=example,dc=com)) result_format = ./example.com/%s/ result_attribute = uid scope = base bind = yes bind_dn = uid=serviceauth,ou=users,dc=example,dc=com bind_pw = pass version = 3 Any help will be very appreciated. -- Matias Emanuel Surdi.