Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dn: uid=auser,ou=People,dc=example,dc=com
- cn: A User
- displayname: A User
- gecos: A User
- gidnumber: 1011
- givenname: A
- homedirectory: /home/auser
- host: host1
- host: host2
- host: host3
- host: host4
- mailacceptinggeneralid: root
- loginshell: /bin/bash
- mail: [email protected]
- objectclass: inetOrgPerson
- objectclass: posixAccount
- objectclass: shadowAccount
- objectclass: hostObject
- objectclass: postfixUser
- objectclass: top
- sn: User
- uid: auser
- uidnumber: 1001
- server_host = ldap.example.com
- search_base = dc=example, dc=com
- # look for entries with this
- query_filter = (|(uid=%s)(mailacceptinggeneralid=%s)(mail=%[email protected]))
- # what attribute from the search result is returned
- result_attribute = mail
- # the format in which the result is returned
- result_format = %s
- # A query using the uid of the user
- postmap -q auser ldap:/etc/postfix/ldap-mail.cf
- # A query using the corporate username
- postmap -q a.user ldap:/etc/postfix/ldap-mail.cf
- # A query for a user specified in mailacceptinggeneralid
- postmap -q root ldap:/etc/postfix/ldap-mail.cf
- server_host = ldap.example.com
- search_base = dc=example, dc=com
- query_filter = (|(host=%3)(host=*))
- result_attribute = mail
- result_format = %s
- postmap -q [email protected] ldap:/etc/postfix/ldap-host-users.cf
- # The following also returns a list of email addresses, but shouldn't:
- postmap -q [email protected] ldap:/etc/postfix/ldap-host-users.cf
Advertisement
Add Comment
Please, Sign In to add comment