Szerző: mtrainer Dátum: Címzett: Exim Tárgy: [exim] Force authenticated local mail to use DNS
Hi,
Emails from our authenticated senders try to deliver locally if the
domain is in our ldap directory even if the DNS MX record for the domain
points externally. Is it possible in exim to make authenticated emails
use the DNS MX instead of just delivering internally if the domain is in
our ldap directory. This of course can't break normal incoming emails.
The contents of our routers.conf file is below. Some advice on how to
solve this problem would be greatly appreciated.
Thanks
Murray
# Check for non-local forwarding entries in LDAP (uses objectClass:
mailAlias)
ldap_nonlocalforward:
driver = redirect
domains = +local_domains
data = ${lookup ldap {user=LDAPUSER pass=LDAPPASS
LDAPS/domainName=${domain},LDAPBASE?mailForwardingAddress?sub?(&(objectClass=mailAlias)(mail=${local_part}))}
{$value} fail }
# Check for forwarding entries in LDAP (objectClass: mailUser)
ldap_forward:
driver = redirect
domains = +local_domains
data = ${lookup ldap {user=LDAPUSER pass=LDAPPASS
LDAPS/domainName=${domain},LDAPBASE?mailForwardingAddress?sub?(&(objectClass=mailUser)(mail=${local_part}@${domain}))}
{$value} fail }
unseen