FEATURE(ldap_routing)
user@example.com) and then on the domain portion (e.g.,
@example.com)
LDAPROUTE_DOMAIN(`example.com')
Default: ldap -1 -v mailHost -k (&(objectClass=inetLocalMailRecipient) (mailLocalAddress=%0))
Default: ldap -1 -v mailRoutingAddress -k (&(objectClass=inetLocalMailRecipient) (mailLocalAddress=%0))
bounce or passthru
(default)
Note that neither of the default map definitions above includes the LDAP server hostname (-h server) or base DN (-b o=org,c=COUNTRY), both necessary for LDAP queries. It is presumed that your .mc file contains a setting for the confLDAP_DEFAULT_SPEC option with these settings. If this is not the case, the map definitions should be changed as described above.
The following possibilities exist as a result of an LDAP lookup on an address:
| mailHost is | mailRoutingAddress is | Results in |
|---|---|---|
| set to a local host | set | mail delivered to mailRoutingAddress |
| set to a local host | not set | delivered to original address |
| set to a remote host | set | mailRoutingAddress relayed to mailHost |
| set to a remote host | not set | original address relayed to mailHost |
| not set | set | mail delivered to mailRoutingAddress |
| not set | not set | delivered to original address *OR* bounced as unknown user |
The term local host above means the host specified is in class
'w' ($=w). Note that the last case depends on the third
argument.