[exim] Questions on dnslookup and smarthost

Startseite
Nachricht löschen
Nachricht beantworten
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 :

2006-11-15 10:48:34 1GkApG-0008Nx-Ty <= wwguocn@??? U=wwguo
P=local S=1954 id=87lkmde871.fsf@???
2006-11-15 10:48:57 1GkApG-0008Nx-Ty ** exim-users@???
R=dnslookup T=remote_smtp: SMTP error from remote mail server after
RCPT TO:<exim-users@???>: 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 => wwguocn@??? 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 <= wwguo@??? U=wwguo
P=local S=517 id=871wo5wj2z.fsf@???
2006-11-15 10:16:21 1GkAJo-0006Wt-TG => wwguocn@??? 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