Advertisement
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: a.user@example.com
- 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=%s@example.com))
- # 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.user@example.com
- # A query using the corporate username
- postmap -q a.user ldap:/etc/postfix/ldap-mail.cf
- a.user@example.com
- # A query for a user specified in mailacceptinggeneralid
- postmap -q root ldap:/etc/postfix/ldap-mail.cf
- a.user@example.com
- server_host = ldap.example.com
- search_base = dc=example, dc=com
- query_filter = (|(host=%3)(host=*))
- result_attribute = mail
- result_format = %s
- postmap -q users@host2.example.com ldap:/etc/postfix/ldap-host-users.cf
- a.user@example.com
- # The following also returns a list of email addresses, but shouldn't:
- postmap -q any_group@host2.example.com ldap:/etc/postfix/ldap-host-users.cf
- a.user@example.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement