[exim-dev] [Bug 2499] SPF false fail, empty MX lookups over…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: admin
日付:  
To: exim-dev
題目: [exim-dev] [Bug 2499] SPF false fail, empty MX lookups overwrite previous good ones
https://bugs.exim.org/show_bug.cgi?id=2499

Wolfgang Breyha <wbreyha@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wbreyha@???


--- Comment #5 from Wolfgang Breyha <wbreyha@???> ---
I think it's the right way, but this patch opens some new issues as it seems.

I used (a spammer domain)...
exim -d+all -bh 89.36.212.141
and
mail from:<admin@???>

The result is correct, but the debug output looks dangerous...

16:11:17 22976 check spf = pass
16:11:17 22976 spf_process
spf_dns.c:54         Debug: DNS[cache] lookup: mogioan.cf TXT (16)
spf_dns.c:66         Debug: DNS[cache] found record
spf_dns.c:69         Debug:     DOMAIN: mogioan.cf  TYPE: TXT (16)
spf_dns.c:76         Debug:     TTL: 1800  RR found: 1  herrno: 0  source: exim
spf_dns.c:94         Debug:     - TXT: v=spf1 a mx ip4:89.36.212.141
mx:mogioan.cf ?all
spf_server.c:404     Debug: get_record(mogioan.cf): NETDB_SUCCESS
spf_server.c:445     Debug: found SPF record: v=spf1 a mx ip4:89.36.212.141
mx:mogioan.cf ?all
spf_compile.c:1210   Debug: Compiling record v=spf1 a mx ip4:89.36.212.141
mx:mogioan.cf ?all
spf_compile.c:1314   Debug: Name starts at  a mx ip4:89.36.212.141
mx:mogioan.cf ?all
spf_compile.c:1408   Debug: Adding mechanism type 1
spf_compile.c:847    Debug: SPF_c_mech_add: type=1, value= mx ip4:89.36.212.141
mx:mogioan.cf ?all
spf_compile.c:1314   Debug: Name starts at  mx ip4:89.36.212.141 mx:mogioan.cf
?all
spf_compile.c:1408   Debug: Adding mechanism type 2
spf_compile.c:847    Debug: SPF_c_mech_add: type=2, value= ip4:89.36.212.141
mx:mogioan.cf ?all
spf_compile.c:1314   Debug: Name starts at  ip4:89.36.212.141 mx:mogioan.cf
?all
spf_compile.c:1408   Debug: Adding mechanism type 5
spf_compile.c:847    Debug: SPF_c_mech_add: type=5, value=:89.36.212.141
mx:mogioan.cf ?all
spf_compile.c:1314   Debug: Name starts at  mx:mogioan.cf ?all
spf_compile.c:1408   Debug: Adding mechanism type 2
spf_compile.c:847    Debug: SPF_c_mech_add: type=2, value=:mogioan.cf ?all
spf_compile.c:689    Debug: Parsing domainspec starting at mogioan.cf ?all,
cidr is optional
spf_compile.c:523    Debug: Parsing macro starting at mogioan.cf ?all
spf_compile.c:1314   Debug: Name starts at  all
spf_compile.c:1408   Debug: Adding mechanism type 8
spf_compile.c:847    Debug: SPF_c_mech_add: type=8, value=
spf_dns.c:54         Debug: DNS[cache] lookup: mogioan.cf A (1)
spf_dns.c:66         Debug: DNS[cache] found record
spf_dns.c:69         Debug:     DOMAIN: mogioan.cf  TYPE: A (1)
spf_dns.c:76         Debug:     TTL: 30  RR found: 1  herrno: 0  source: exim
spf_dns.c:82         Debug:     - A: 36.212.141.192
spf_interpret.c:783  Debug: found 1 A records for mogioan.cf  (herrno: 0)
spf_interpret.c:491  Debug: ip_match:  89.36.212.141 == 36.212.141.192  (/32
255.255.255.255):  0
spf_dns.c:54         Debug: DNS[cache] lookup: mogioan.cf MX (15)
spf_dns.c:66         Debug: DNS[cache] found record
spf_dns.c:69         Debug:     DOMAIN: mogioan.cf  TYPE: MX (15)
spf_dns.c:76         Debug:     TTL: 3600  RR found: 1  herrno: 0  source: exim
spf_dns.c:90         Debug:     - MX: �mil�
                                           �


spf_interpret.c:824  Debug: found 1 MX records for mogioan.cf  (herrno: 0)
spf_dns.c:54         Debug: DNS[cache] lookup: �mil�
                                                    �
                                                      A (1)
spf_dns.c:66         Debug: DNS[cache] found record
spf_dns.c:69         Debug:     DOMAIN: �mil�
                                             �
                                                TYPE: A (1)
spf_dns.c:76         Debug:     TTL: 86400  RR found: 0  herrno: 1  source:
exim
spf_interpret.c:855  Debug: 0: found 0 A records for �mil�
                                                          �
                                                             (herrno: 1)
spf_interpret.c:491  Debug: ip_match:  89.36.212.141 == 89.36.212.141  (/32
255.255.255.255):  1
16:11:17 22976 SPF result is pass (2)


The relevant RRs are:
$ host -t txt mogioan.cf
mogioan.cf descriptive text "v=spf1 a mx ip4:89.36.212.141 mx:mogioan.cf ?all"
$ host -t mx mogioan.cf
mogioan.cf mail is handled by 1001 mail.mogioan.cf.
$ host mail.mogioan.cf.
mail.mogioan.cf has address 89.36.212.141

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