Re: [exim] Am I right that no_more has no effect within the …

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Phil Pennock
Date:  
À: Regid Ichira
CC: exim-users
Sujet: Re: [exim] Am I right that no_more has no effect within the included simple routers?
On 2012-05-23 at 03:03 -0700, Regid Ichira wrote:
> Consider the following two routers:
>
> 1) nonlocal:
>       driver = redirect
>       domains = ! +local_domains
>       allow_fail
>       data = :fail: Mailing to remote domains not supported
>       no_more

>
> 2) dnslookup_relay_to_domains:
>       driver = dnslookup
>       domains = ! +local_domains : +relay_to_domains
>       transport = remote_smtp
>       same_domain_copy_routing = yes
>       no_more

>
> Am I right that, in both cases, if the router run, it can not decline?


Yes for (1), no for (2).

The dnslookup router will decline if the domain does not exist in DNS,
or the domain is not syntactically valid for SMTP's defined DNS lookups,
or the MX record points to ".", which is a convention for "no MX service
for this domain, and do not fall back to A/AAAA lookups". There's a
couple of other cases too.

Just because the domain is listed in +relay_to_domains, that doesn't
mean that +relay_to_domains is up-to-date, or that the recipient's DNS
is not just broken.

> I think spec.txt mentions a similar situation in a discussion about
> the manualroute.


This is where manualroute is so very different from dnslookup. For
manualroute, each domain is handled by explicit configuration, whereas
dnslookup involves going out into the wilds of public DNS, to see
whether or not the domain might exist and discover what policy might
exist for where to send mail for that domain.

-Phil