Re: [exim] +ignore_unknown and dns defers

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: xyon
Dátum:  
Címzett: David Saez Padros
CC: EXIM mailing list
Tárgy: Re: [exim] +ignore_unknown and dns defers
I'm not positive this will help you, but it seems to address your issue.

My company has issues resolving some dns names as well. What they asked me
to do is have a static name -> ip table for typically problem domains. You
may want to do this, but in opposite order, so if dns fails, a backup
static table is looked up. Below is a snippet of my config. Maybe you
could put the lookuphostdns first, without a 'no_more', and then the
lookuphostdb second (with 'no_more').

begin routers

lookuphostdb:
driver = manualroute
transport = remote_smtp
route_data = ${lookup mysql{STATIC_DOMAINS}}

lookuphostdns:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
no_more


begin transports

remote_smtp:
driver = smtp
hosts_require_tls = +relay_from_hosts



The MySQL lookup basically returns something like this: "SELECT IP FROM
Relay_To WHERE Host='mydomain.com';
+----------+
| IP       |

+----------+
| 1.2.3.4 |

+----------+
1 row in set (0.00 sec)



I hope this helps!




On Thu, March 30, 2006 08:30, David Saez Padros wrote:
> Hi !!
>
> I have a problem where a domain has some dns problems and it's
> on a host list like this:
>
> hosts = +ignore_unknown : *.$sender_address_domain :\
>     $sender_address_domain : ${lookup dnsdb{>:\
>     defer_never,mxh=$sender_address_domain}}

>
> looks like some problem trying to resolve the hostname cioce.com
> causes the whole acl check to defer with a 451 Temporary local problem
> I suposed that the +ignore_unknown option will also make any lookup
> defer to ignore the list item and proceed with the following one,
> but the only way to avoid temporary reject that message forever is
> to put that domain in dns_again_means_nonexist (which i don't like).
> Maybe it will be better if +ignore_unknown could handle that situation
> nicely.
>
> debug output follows:
>
> >>> check hosts = +ignore_unknown : *.$sender_address_domain
> :$sender_address_domain : ${lookup dnsdb{>:
> defer_never,mxh=$sender_address_domain}}
> >>> cioce.com in dns_again_means_nonexist? no (option unset)
> >>> no IP address found for host cioce.com (during SMTP connection from
> smtp.telefonica.net (ctsmtpout3.frontal.correo) [213.4.149.66])
> >>> host in "+ignore_unknown : *.cioce.com :cioce.com : "? lookup
> deferred for cioce.com
> >>> accept: condition test deferred
> >>> deny: condition test deferred
> >>> drop: condition test deferred
> 451 Temporary local problem - please try later
> LOG: H=smtp.telefonica.net (ctsmtpout3.frontal.correo) [213.4.149.66]
> F=<ofertas@???> temporarily rejected RCPT
> <jordi@???>
> LOG: SMTP command timeout on connection from smtp.telefonica.net
> (ctsmtpout3.frontal.correo) [213.4.149.66]
>
>
> --
> Best regards ...
>
> ----------------------------------------------------------------
>     David Saez Padros                http://www.ols.es
>     On-Line Services 2000 S.L.       e-mail  david@???
>     Pintor Vayreda 1                 telf    +34 902 50 29 75
>     08184 Palau-Solita i Plegamans   movil   +34 670 35 27 53
> ----------------------------------------------------------------

>
>
>
> --
> ## 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/
>