Re: [exim] Sender verify and Null MX (localhost.)

Góra strony
Delete this message
Reply to this message
Autor: Niels Kobschätzki
Data:  
Dla: Evgeniy Berdnikov
CC: exim-users
Temat: Re: [exim] Sender verify and Null MX (localhost.)
On 2 Nov 2021, at 20:39, Evgeniy Berdnikov via Exim-users wrote:

> Hi.
>
> On Tue, Nov 02, 2021 at 08:12:49PM +0100, Niels Kobschätzki via Exim-users wrote:
>> What setting do I have to make in the dnslookup-router that a “MX 0 localhost.” fails and not defers?
>
> Try ignore_target_hosts option.


That doesn’t work:

dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
.ifdef SRS
dnssec_request_domains = *
.endif
mx_fail_domains = googlemail.de
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 : 10.0.0.0/8 : 172.16.0.0/12 : [::1/128]
no_more

leads to
(…)
>>> calling dnslookup router
>>> seitensammler.de in "*"? yes (matched "*")
>>> ::1 in "0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 : 10.0.0.0/8 : 172.16.0.0/12 : [::1/128]"? no (malformed IPv4 address or address mask)
>>> 127.0.0.1 in "0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 : 10.0.0.0/8 : 172.16.0.0/12 : [::1/128]"? yes (matched "127.0.0.0/8")
>>> localhost in hosts_treat_as_local? no (end of list)
>>> local host has lowest MX

LOG: lowest numbered MX record points to local host: seitensammler.de (while verifying <foobar@???> from host rs224.mailgun.us [209.61.151.224])
>>> dnslookup router: defer for sender@???
>>> message: lowest numbered MX record points to local host
>>> ----------- end verify ------------
>>> require: condition test deferred in ACL "acl_check_rcpt"

LOG: H=rs224.mailgun.us [209.61.151.224] sender verify defer for <sender@???>: lowest numbered MX record points to local host
451 Temporary local problem - please try later
LOG: H=rs224.mailgun.us [209.61.151.224] F=<foobar@???> temporarily rejected RCPT <rcpt@???>: Could not complete sender verify

I also tried [::1] and ::1 — they also give an error of malformed IPv4 address or address mask; but it matches then 127.0.0.0/8
Still a 451 Temporary local problem

Niels