| Last change
                  on this file since 1693 was
                  1443,
                  checked in by mitchb, 16 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 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 |  | 
|---|
|  | 15 | server_host = ldapi://%2fvar%2frun%2fdirsrv%2fslapd-scripts.socket/ | 
|---|
|  | 16 | search_base = ou=VirtualHosts,dc=scripts,dc=mit,dc=edu | 
|---|
|  | 17 | query_filter = (&(objectClass=scriptsVhost)(|(scriptsVhostName=%d)(scriptsVhostAlias=%d))(!(scriptsVhostName=scripts.mit.edu))) | 
|---|
|  | 18 | result_attribute = uid | 
|---|
|  | 19 | special_result_attribute = scriptsVhostAccount | 
|---|
|  | 20 | bind = no | 
|---|
|  | 21 | version = 3 | 
|---|
|  | 22 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.