Autor: Guo Wei-Wei Datum: To: exim-users Betreff: [exim] Questions on dnslookup and smarthost
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/source_routes}{*@$sender_address_domain} 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: wwguo@localhost. Their Return-path: and
envelope-from are wwguocn@???, lets say the email is sent from
wwguocn@???. 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 "exim-user@???". The following is logs :