Auteur: Segree, GarethDate: 2005-05-25 19:56 UTC À: exim-usersSujet: [exim] How to change domain of outgoing mail
Whenever I do this I get the following.
2005-05-25 15:13:17 H=sub.domain2.com [xx.xx.xx.xx] sender verify fail for
<user@ sub.domain2.com>: Unrouteable address
2005-05-25 15:13:17 H=mail.sub.domain2.com [xx.xx.xx.xx]
F=<user@??? > rejected RCPT <user@???>: Sender verify
failed
Snippet from my exim.conf
domainlist local_domains = @ : dbm;/etc/mail/localdomains.db
hostlist relay_from_hosts = mail.domain.com : mail.sub.domain2.com
exchangeothermailboxlookup:
driver = redirect
data = ${lookup ldap
{ldap:///?mail?sub?(otherMailbox=smtp\$${quote_ldap:$local_part}@${quote_lda
p:$domain})}}
domains = dbm;/etc/mail/localdomains.db
verify_recipient
# This lookup verifies the mail=user@??? format and if it exists
# Pass to the the manualroute router which is used to punt to the internal
# Exchange server as defined by domain.
exchangemaillookup:
driver = redirect
data = ${lookup ldap
{ldap:///?mail?sub?(mail=${quote_ldap:$local_part}@${quote_ldap:$domain})}}
domains = dbm;/etc/mail/localdomains.db
verify_recipient
self = pass
pass_router = exchangeroute
no_more
exchangeroute:
driver = manualroute
transport = remote_smtp
route_data = ${lookup{$domain}dbm{/etc/mail/localdomains.db}}
/etc/mail/localdomains
domain.com: 1.1.1.1
sub.domain2.com: 2.2.2.2