Dear all,
I tried to set smarthost router day ago. I want to make Exim chosen
smarthost based on sender address domain. I used the following
configuration which provided by Ian (thank you, Ian).
> source_route:
> driver = manualroute
> domains = ! +local_domains
> transport = remote_smtp
> senders =
> ${lookup{$sender_address_domain}lsearch{/usr/local/etc/exim/[EMAIL PROTECTED]
> fail }
> route_data =
> ${lookup{$sender_address_domain}lsearch{/usr/local/etc/exim/source_routes}{$value}}
But because of my lacking of knowledge on Exim, the configuration
doesn't work on me. Accidently, I the following setting can help me
out:
> trusted_groups = mail
>
> dnslookup:
> driver = dnslookup
> domains = ! +local_domains
> transport = remote_smtp
> ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
> no_more
My MUA changes the envelope-from based on From: and Exim sends mails
locally. Now I can get the function that I want. But I'm still
confusing. Is there any difference between the results of those two
configuration?
And I also find that mails send by the dnslookup configuration still
have a Envelope-To: [EMAIL PROTECTED] Their Return-path: and
envelope-from are [EMAIL PROTECTED], lets say the email is sent from
[EMAIL PROTECTED] Is there any problem with it? Is there risk?
I also find that some email address are unreachable when sending mails
by my MUA, such as "[EMAIL PROTECTED]". The following is logs :
2006-11-15 10:48:34 1GkApG-0008Nx-Ty <= [EMAIL PROTECTED] U=wwguo
P=local S=1954 [EMAIL PROTECTED]
2006-11-15 10:48:57 1GkApG-0008Nx-Ty ** [email protected]
R=dnslookup T=remote_smtp: SMTP error from remote mail server after
RCPT TO:<[email protected]>: host sesame.csx.cam.ac.uk
[131.111.8.41]: 550 Access denied - 60.190.226.78 listed by
rbl-plus.mail-abuse.ja.net -
2006-11-15 10:48:57 1GkApd-0008VJ-FH <= <> R=1GkApG-0008Nx-Ty U=mail
P=local S=2906
2006-11-15 10:48:57 1GkApG-0008Nx-Ty Completed
2006-11-15 10:49:38 1GkApd-0008VJ-FH => [EMAIL PROTECTED] R=dnslookup
T=remote_smtp H=gmail-smtp-in.l.google.com [66.249.83.114]
2006-11-15 10:49:38 1GkApd-0008VJ-FH Completed
Here is logs of mail sent successfully by my MUA:
2006-11-15 10:16:04 1GkAJo-0006Wt-TG <= [EMAIL PROTECTED] U=wwguo
P=local S=517 [EMAIL PROTECTED]
2006-11-15 10:16:21 1GkAJo-0006Wt-TG => [EMAIL PROTECTED] R=dnslookup
T=remote_smtp H=sohumx.sohu.com [61.135.132.100]
2006-11-15 10:16:21 1GkAJo-0006Wt-TG Completed
How could I solve the problem?
Greeting,
Wei-Wei
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/