Postfix: Rewriting sender email address from ldap lookups
This is what I've got so far:
canonical_maps = ldap:/etc/postfix/ldap-canonical.cf
server_host = ldap.domain.com
search_base = ...
bind = yes
bind_dn = ...
bind_pw = ...
query_filter = sAMAccountName=%u
result_attribute = mail
I take the above two lines to mean:
find the ldap entry that has sAMAccountName = to the local part of the sender address (eg: userid from userid@pcname).
Use the "mail" entry as the result address. Am I wrong here?
I think it's authenticating just fine but I'm getting the following error in my log file:
warning: dict_ldap_lookup: Search error 9: Partial results and referral received
Apr 18 09:22:15 pcname postfix/cleanup: warning: 10C2A7BC464: canonical_maps map lookup problem for userid@pcname
This should be a pretty simple task ... any postfix admins have any thoughts?
Can you show us a relevant ldap entry?
I got it working with a little googling ...
My LDAP server is Active Directory running on MS Server 2003.
version = 3
to my ldap-canonical.cf file and everything started working.
I guess postfix defaults to version 2 and AD on MS Server 2003 uses version 3.
Hopefully this helps someone else out there.
|All times are GMT -5. The time now is 11:35 AM.|