source: branches/fc13-dev/server/fedora/config/etc/postfix/virtual-alias-maps-ldap.cf @ 1684

Last change on this file since 1684 was 1443, checked in by mitchb, 14 years ago
I Bemoan The State Of Postfix (LDAP and mail hosting for all our vhosts)
File size: 1.2 KB
Line 
1# Find any vhost with a name or alias matching the domain of the e-mail
2# address.  We're queried with an entire e-mail address, but are only
3# interested in checking whether the domain portion corresponds to a
4# vhost; we'll simply deliver any mail for the vhost to its owner, regardless
5# of the lefthand side of the address.  %d extracts only the domain.
6# We don't match the scripts.mit.edu vhost here because we don't want
7# to first resolve an arbitrary address to a scripts account, and then
8# end up sending their mail to the owners of the scripts.mit.edu vhost.
9# Once we've found the scriptsVhost object corresponding to the domain
10# the e-mail is for, we recursively search the suffix for the vhost's
11# scriptsVhostAccount, and take the uid from that object.  This uid is
12# the name of the locker that owns the vhost.  Protocol version 3 is
13# necessary to use ldapi.
14
15server_host = ldapi://%2fvar%2frun%2fdirsrv%2fslapd-scripts.socket/
16search_base = ou=VirtualHosts,dc=scripts,dc=mit,dc=edu
17query_filter = (&(objectClass=scriptsVhost)(|(scriptsVhostName=%d)(scriptsVhostAlias=%d))(!(scriptsVhostName=scripts.mit.edu)))
18result_attribute = uid
19special_result_attribute = scriptsVhostAccount
20bind = no
21version = 3
22
Note: See TracBrowser for help on using the repository browser.