Last change
on this file since 1582 was
1443,
checked in by mitchb, 15 years ago
|
I Bemoan The State Of Postfix (LDAP and mail hosting for all our vhosts)
|
File size:
1.2 KB
|
Rev | Line | |
---|
[1443] | 1 | # Find any vhost with a name or alias matching the domain of the e-mail |
---|
| 2 | # address. We're queried with only the domain portion to determine whether |
---|
| 3 | # we accept mail at all for a given domain. If we have no matching vhost |
---|
| 4 | # and return no records, Postfix will reject mail with a "Relay access denied" |
---|
| 5 | # error, unless the domain is configured in $mydestination. We don't match |
---|
| 6 | # the scripts.mit.edu vhost here because otherwise it'll be treated as a |
---|
| 7 | # virtual alias domain and once we resolve an address to a scripts account, |
---|
| 8 | # we'll end up resolving the locker@scripts.mit.edu address to go to the |
---|
| 9 | # owners of the scripts.mit.edu vhost. The value we return (if we return |
---|
| 10 | # anything at all) is supposedly arbitrary. We choose to return the same |
---|
| 11 | # value we were queried with (the domain whose mail we host). Protocol |
---|
| 12 | # version 3 is necessary to use ldapi. |
---|
| 13 | |
---|
| 14 | server_host = ldapi://%2fvar%2frun%2fdirsrv%2fslapd-scripts.socket/ |
---|
| 15 | search_base = ou=VirtualHosts,dc=scripts,dc=mit,dc=edu |
---|
| 16 | query_filter = (&(objectClass=scriptsVhost)(|(scriptsVhostName=%s)(scriptsVhostAlias=%s))(!(scriptsVhostName=scripts.mit.edu))) |
---|
| 17 | result_attribute = scriptsVhostName |
---|
| 18 | result_format = %S |
---|
| 19 | bind = no |
---|
| 20 | version = 3 |
---|
| 21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.