22 Feb
2008
22 Feb
'08
2:30 p.m.
Hello...
As Charles Marcus said, my problem is with postfix, not dovecot.
I have solved my problem like this:
- Create file /etc/postfix/ldap/local_recipients.cf with content:
bind = no server_host = ldap://192.168.0.51:389 search_base = cn=users,dc=yoiko,dc=local,dc=kontrapunkt,dc=dk query_filter = (uid=%u) result_attribute = uid
- Added the below to /etc/postfix/main.cf:
local_recipient_maps = proxy:ldap:/etc/postfix/ldap/local_recipients.cf
Postfix now rejects mail to users not in my LDAP database (No uid matching the recipient with the domain stripped off.)
Tobias