Last active
April 27, 2016 12:17
-
-
Save m4ce/965ec89dd98aed9d9e4145aa399f1796 to your computer and use it in GitHub Desktop.
Rewrite postfix sender/recipient mail address from FreeIPA (LDAP)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server_host = <ipa_host> | |
server_port = 389 | |
bind = no | |
search_base = cn=users,cn=accounts,dc=example,dc=org | |
query_filter = (&(objectClass=person)(uid=%u)) | |
result_attribute = mail | |
result_format = %s | |
start_tls = yes | |
version = 3 | |
tls_key = <key> | |
tls_cert = <cert> | |
tls_ca_cert_file = /etc/ipa/ca.crt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sender_canonical_maps = regexp:/etc/postfix/sender_canonical, ldap:/etc/postfix/canonical_ldap | |
recipient_canonical_maps = regexp:/etc/postfix/recipient_canonical, ldap:/etc/postfix/canonical_ldap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you don't want to create a system user to bind with, you need to allow read access to the user's mail attribute when binding anonymously.