[exim-dev] [Bug 2701] New: dns_ipv4_lookup does not expand …

Startseite
Nachricht löschen
Nachricht beantworten
Autor: admin
Datum:  
To: exim-dev
Neue Treads: [exim-dev] [Bug 2701] dns_ipv4_lookup does not expand +domainlist
Betreff: [exim-dev] [Bug 2701] New: dns_ipv4_lookup does not expand +domainlist
https://bugs.exim.org/show_bug.cgi?id=2701

            Bug ID: 2701
           Summary: dns_ipv4_lookup does not expand +domainlist
           Product: Exim
           Version: 4.94
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Lookups
          Assignee: unallocated@???
          Reporter: wbreyha@???
                CC: exim-dev@???


The documentation states that dns_ipv4_lookup uses an expanded domainlist.

It is easy to reproduce. Use a copy of any working config and add the two lines
I used and "-bt" afterwards.

Maybe only documentation needs fixing.

I tried
domainlist gmailmx = *.l.google.com
dns_ipv4_lookup = +gmailmx
but
# exim -d+all -bt test@??? shows:

...since this domainlist is only used for this specific task and not referenced
before I stripped debug output down to the dnslookup router away ...

14:36:06 27843 --------> dnslookup router <--------
14:36:06 27843 local_part=test domain=gmail.com
14:36:06 27843 checking domains
14:36:06 27843 gmail.com in "@ : /etc/mail/exim/local_domains : +mm_domains"?
no (end of list)
14:36:06 27843 cached no match for +mm_domains
14:36:06 27843 cached lookup data = NULL
14:36:06 27843 gmail.com in "! +local_domains : ! +mm_domains"? yes (end of
list)
14:36:06 27843 calling dnslookup router
14:36:06 27843 dnslookup router called for test@???
14:36:06 27843   domain = gmail.com
14:36:06 27843 gmail.com in "*"? yes (matched "*")
14:36:06 27843 Coerced resolver EDNS0 support on.
14:36:06 27843 Coerced resolver DNSSEC support on.
14:36:06 27843 DNS lookup of gmail.com (MX) succeeded
14:36:06 27843 Coerced resolver EDNS0 support on.
14:36:06 27843 Coerced resolver DNSSEC support on.
14:36:06 27843 gmail-smtp-in.l.google.com in dns_ipv4_lookup? no (end of list)
14:36:06 27843 DNS lookup of gmail-smtp-in.l.google.com (AAAA) succeeded
14:36:06 27843 2a00:1450:400c:c04::1a in "0.0.0.0 : 127.0.0.0/8 :
/etc/mail/exim/badmx"? no (end of list)
14:36:06 27843 DNS lookup of gmail-smtp-in.l.google.com (A) succeeded
14:36:06 27843 74.125.206.26 in "0.0.0.0 : 127.0.0.0/8 : /etc/mail/exim/badmx"?
no (end of list)
14:36:06 27843 alt1.gmail-smtp-in.l.google.com in dns_ipv4_lookup? no (end of
list)
14:36:06 27843 DNS lookup of alt1.gmail-smtp-in.l.google.com (AAAA) succeeded
14:36:06 27843 2a00:1450:4025:c03::1b in "0.0.0.0 : 127.0.0.0/8 :
/etc/mail/exim/badmx"? no (end of list)
14:36:06 27843 DNS lookup of alt1.gmail-smtp-in.l.google.com (A) succeeded
14:36:06 27843 142.251.9.26 in "0.0.0.0 : 127.0.0.0/8 : /etc/mail/exim/badmx"?
no (end of list)
14:36:06 27843 alt2.gmail-smtp-in.l.google.com in dns_ipv4_lookup? no (end of
list)
14:36:06 27843 DNS lookup of alt2.gmail-smtp-in.l.google.com (AAAA) succeeded
14:36:06 27843 2a00:1450:4010:c03::1b in "0.0.0.0 : 127.0.0.0/8 :
/etc/mail/exim/badmx"? no (end of list)
14:36:06 27843 DNS lookup of alt2.gmail-smtp-in.l.google.com (A) succeeded
14:36:06 27843 209.85.233.26 in "0.0.0.0 : 127.0.0.0/8 : /etc/mail/exim/badmx"?
no (end of list)
14:36:06 27843 alt3.gmail-smtp-in.l.google.com in dns_ipv4_lookup? no (end of
list)
14:36:06 27843 DNS lookup of alt3.gmail-smtp-in.l.google.com (AAAA) succeeded
14:36:06 27843 2404:6800:4003:c06::1a in "0.0.0.0 : 127.0.0.0/8 :
/etc/mail/exim/badmx"? no (end of list)
14:36:06 27843 DNS lookup of alt3.gmail-smtp-in.l.google.com (A) succeeded
14:36:06 27843 142.250.4.26 in "0.0.0.0 : 127.0.0.0/8 : /etc/mail/exim/badmx"?
no (end of list)
14:36:06 27843 alt4.gmail-smtp-in.l.google.com in dns_ipv4_lookup? no (end of
list)
14:36:06 27843 DNS lookup of alt4.gmail-smtp-in.l.google.com (AAAA) succeeded
14:36:06 27843 2404:6800:4008:c00::1a in "0.0.0.0 : 127.0.0.0/8 :
/etc/mail/exim/badmx"? no (end of list)
14:36:06 27843 DNS lookup of alt4.gmail-smtp-in.l.google.com (A) succeeded
14:36:06 27843 108.177.97.26 in "0.0.0.0 : 127.0.0.0/8 : /etc/mail/exim/badmx"?
no (end of list)
14:36:06 27843 Actual local interface address is 127.0.0.1 (lo)
14:36:06 27843 Actual local interface address is ...
14:36:06 27843 Actual local interface address is ::1 (lo)
14:36:06 27843 Actual local interface address is ....
14:36:06 27843 Actual local interface address is fe80:....
14:36:06 27843 Actual local interface address is ....
14:36:06 27843 fully qualified name = gmail.com
14:36:06 27843 host_find_bydns yield = HOST_FOUND (3); returned hosts:
14:36:06 27843   gmail-smtp-in.l.google.com 2a00:1450:400c:c04::1a MX=5 
14:36:06 27843   gmail-smtp-in.l.google.com 74.125.206.26 MX=5 
14:36:06 27843   alt1.gmail-smtp-in.l.google.com 2a00:1450:4025:c03::1b MX=10 
14:36:06 27843   alt1.gmail-smtp-in.l.google.com 142.251.9.26 MX=10 
14:36:06 27843   alt2.gmail-smtp-in.l.google.com 2a00:1450:4010:c03::1b MX=20 
14:36:06 27843   alt2.gmail-smtp-in.l.google.com 209.85.233.26 MX=20 
14:36:06 27843   alt3.gmail-smtp-in.l.google.com 2404:6800:4003:c06::1a MX=30 
14:36:06 27843   alt3.gmail-smtp-in.l.google.com 142.250.4.26 MX=30 
14:36:06 27843   alt4.gmail-smtp-in.l.google.com 2404:6800:4008:c00::1a MX=40 
14:36:06 27843   alt4.gmail-smtp-in.l.google.com 108.177.97.26 MX=40 
14:36:06 27843 Coerced resolver EDNS0 support on.
14:36:06 27843 Coerced resolver DNSSEC support on.
14:36:06 27843 set transport remote_smtp
14:36:06 27843 queued for remote_smtp transport: local_part = test
14:36:06 27843 domain = gmail.com
14:36:06 27843   errors_to=NULL
14:36:06 27843   domain_data=NULL localpart_data=NULL
14:36:06 27843 routed by dnslookup router
14:36:06 27843   envelope to: test@???
14:36:06 27843   transport: remote_smtp
14:36:06 27843   host gmail-smtp-in.l.google.com [2a00:1450:400c:c04::1a] MX=5
dnssec=no
14:36:06 27843   host gmail-smtp-in.l.google.com [74.125.206.26] MX=5 dnssec=no
14:36:06 27843   host alt1.gmail-smtp-in.l.google.com [2a00:1450:4025:c03::1b]
MX=10 dnssec=no
14:36:06 27843   host alt1.gmail-smtp-in.l.google.com [142.251.9.26] MX=10
dnssec=no
14:36:06 27843   host alt2.gmail-smtp-in.l.google.com [2a00:1450:4010:c03::1b]
MX=20 dnssec=no
14:36:06 27843   host alt2.gmail-smtp-in.l.google.com [209.85.233.26] MX=20
dnssec=no
14:36:06 27843   host alt3.gmail-smtp-in.l.google.com [2404:6800:4003:c06::1a]
MX=30 dnssec=no
14:36:06 27843   host alt3.gmail-smtp-in.l.google.com [142.250.4.26] MX=30
dnssec=no
14:36:06 27843   host alt4.gmail-smtp-in.l.google.com [2404:6800:4008:c00::1a]
MX=40 dnssec=no
14:36:06 27843   host alt4.gmail-smtp-in.l.google.com [108.177.97.26] MX=40
dnssec=no
test@???
  router = dnslookup, transport = remote_smtp
  host gmail-smtp-in.l.google.com      [2a00:1450:400c:c04::1a] MX=5
  host gmail-smtp-in.l.google.com      [74.125.206.26]          MX=5
  host alt1.gmail-smtp-in.l.google.com [2a00:1450:4025:c03::1b] MX=10
  host alt1.gmail-smtp-in.l.google.com [142.251.9.26]           MX=10
  host alt2.gmail-smtp-in.l.google.com [2a00:1450:4010:c03::1b] MX=20
  host alt2.gmail-smtp-in.l.google.com [209.85.233.26]          MX=20
  host alt3.gmail-smtp-in.l.google.com [2404:6800:4003:c06::1a] MX=30
  host alt3.gmail-smtp-in.l.google.com [142.250.4.26]           MX=30
  host alt4.gmail-smtp-in.l.google.com [2404:6800:4008:c00::1a] MX=40
  host alt4.gmail-smtp-in.l.google.com [108.177.97.26]          MX=40
14:36:06 27843 search_tidyup called



If I use:
domainlist gmx = *.l.google.com
dns_ipv4_lookup = +gmx : *.l.google.com
it gets filtered correctly:
....
14:38:24 27860 --------> dnslookup router <--------
14:38:24 27860 local_part=test domain=gmail.com
14:38:24 27860 checking domains
14:38:24 27860 gmail.com in "@ : /etc/mail/exim/local_domains : +mm_domains"?
no (end of list)
14:38:24 27860 cached no match for +mm_domains
14:38:24 27860 cached lookup data = NULL
14:38:24 27860 gmail.com in "! +local_domains : ! +mm_domains"? yes (end of
list)
14:38:24 27860 calling dnslookup router
14:38:24 27860 dnslookup router called for test@???
14:38:24 27860   domain = gmail.com
14:38:24 27860 gmail.com in "*"? yes (matched "*")
14:38:24 27860 Coerced resolver EDNS0 support on.
14:38:24 27860 Coerced resolver DNSSEC support on.
14:38:24 27860 DNS lookup of gmail.com (MX) succeeded
14:38:24 27860 Coerced resolver EDNS0 support on.
14:38:24 27860 Coerced resolver DNSSEC support on.
14:38:24 27860 gmail-smtp-in.l.google.com in dns_ipv4_lookup? yes (matched
"*.l.google.com")
14:38:24 27860 DNS lookup of gmail-smtp-in.l.google.com (A) succeeded
14:38:24 27860 74.125.206.26 in "0.0.0.0 : 127.0.0.0/8 : /etc/mail/exim/badmx"?
no (end of list)
14:38:24 27860 alt1.gmail-smtp-in.l.google.com in dns_ipv4_lookup? yes (matched
"*.l.google.com")
14:38:24 27860 DNS lookup of alt1.gmail-smtp-in.l.google.com (A) succeeded
14:38:24 27860 142.251.9.26 in "0.0.0.0 : 127.0.0.0/8 : /etc/mail/exim/badmx"?
no (end of list)
14:38:24 27860 alt2.gmail-smtp-in.l.google.com in dns_ipv4_lookup? yes (matched
"*.l.google.com")
14:38:24 27860 DNS lookup of alt2.gmail-smtp-in.l.google.com (A) succeeded
14:38:24 27860 209.85.233.26 in "0.0.0.0 : 127.0.0.0/8 : /etc/mail/exim/badmx"?
no (end of list)
14:38:24 27860 alt3.gmail-smtp-in.l.google.com in dns_ipv4_lookup? yes (matched
"*.l.google.com")
14:38:24 27860 DNS lookup of alt3.gmail-smtp-in.l.google.com (A) succeeded
14:38:24 27860 142.250.4.26 in "0.0.0.0 : 127.0.0.0/8 : /etc/mail/exim/badmx"?
no (end of list)
14:38:24 27860 alt4.gmail-smtp-in.l.google.com in dns_ipv4_lookup? yes (matched
"*.l.google.com")
14:38:24 27860 DNS lookup of alt4.gmail-smtp-in.l.google.com (A) succeeded
14:38:24 27860 108.177.97.26 in "0.0.0.0 : 127.0.0.0/8 : /etc/mail/exim/badmx"?
no (end of list)
14:38:24 27860 Actual local interface address is 127.0.0.1 (lo)
14:38:24 27860 Actual local interface address is ....
14:38:24 27860 Actual local interface address is ::1 (lo)
14:38:24 27860 Actual local interface address is ....
14:38:24 27860 Actual local interface address is fe80::...
14:38:24 27860 Actual local interface address is ...
14:38:24 27860 fully qualified name = gmail.com
14:38:24 27860 host_find_bydns yield = HOST_FOUND (3); returned hosts:
14:38:24 27860   gmail-smtp-in.l.google.com 74.125.206.26 MX=5 
14:38:24 27860   alt1.gmail-smtp-in.l.google.com 142.251.9.26 MX=10 
14:38:24 27860   alt2.gmail-smtp-in.l.google.com 209.85.233.26 MX=20 
14:38:24 27860   alt3.gmail-smtp-in.l.google.com 142.250.4.26 MX=30 
14:38:24 27860   alt4.gmail-smtp-in.l.google.com 108.177.97.26 MX=40 
14:38:24 27860 Coerced resolver EDNS0 support on.
14:38:24 27860 Coerced resolver DNSSEC support on.
14:38:24 27860 set transport remote_smtp
14:38:24 27860 queued for remote_smtp transport: local_part = test
14:38:24 27860 domain = gmail.com
14:38:24 27860   errors_to=NULL
14:38:24 27860   domain_data=NULL localpart_data=NULL
14:38:24 27860 routed by dnslookup router
14:38:24 27860   envelope to: test@???
14:38:24 27860   transport: remote_smtp
14:38:24 27860   host gmail-smtp-in.l.google.com [74.125.206.26] MX=5 dnssec=no
14:38:24 27860   host alt1.gmail-smtp-in.l.google.com [142.251.9.26] MX=10
dnssec=no
14:38:24 27860   host alt2.gmail-smtp-in.l.google.com [209.85.233.26] MX=20
dnssec=no
14:38:24 27860   host alt3.gmail-smtp-in.l.google.com [142.250.4.26] MX=30
dnssec=no
14:38:24 27860   host alt4.gmail-smtp-in.l.google.com [108.177.97.26] MX=40
dnssec=no
test@???
  router = dnslookup, transport = remote_smtp
  host gmail-smtp-in.l.google.com      [74.125.206.26] MX=5
  host alt1.gmail-smtp-in.l.google.com [142.251.9.26]  MX=10
  host alt2.gmail-smtp-in.l.google.com [209.85.233.26] MX=20
  host alt3.gmail-smtp-in.l.google.com [142.250.4.26]  MX=30
  host alt4.gmail-smtp-in.l.google.com [108.177.97.26] MX=40
14:38:24 27860 search_tidyup called


--
You are receiving this mail because:
You are on the CC list for the bug.