I'm confused as the Exchange routing referred to on
http://wiki.exim.org/MsExchangeAddressVerification
Accounts currently all exist on the unix box, and a small number are
going to use exchange, but their unix accounts will not be deleted.
I have a router:
exchange_user:
driver = redirect
domains = +exchange_domains
headers_add = X-Original-Recipient: $local_part@$domain
allow_fail
allow_defer
forbid_file
forbid_pipe
redirect_router = exchangeroute
data = ${lookup ldap {LDAP_AD_MAIL_RCPT} {${local_part}@${domain}}}
and after that the exchangeroute manual router, then the localuser
router. what's happening is if the account exists in Exchange it's
delivered fine, but if it's not it's sent back to the exim box, which
doesn't deliver to the local account, it sends it back to Exchange. So I
guess I need to verify before sending to the Exchange box, and pass onto
the localuser router if it's local and not in Exchange. The mentioned
URL refers to using:
data = ${lookup ldap {LDAP_AD_MAIL_RCPT}\
{${local_part}@${domain}}{:fail: User unknown}}
in the redirect router, but if I change that in mine all atempts fail.
Can someone point out what it is I'm missing? Thanks very much