On 01/30/18 10:11, Marcin Mirosław wrote: > W dniu 29.01.2018 o 08:26, Giovanni Bechis pisze: >> On 01/29/18 06:00, Alex wrote: >>> Hi, >>> >>>> FORGED_HOTMAIL_RCVD2 (hotmail.com 'From' address, but no 'Received:') >>>> triggers for valid hotmail messages... (SA 3.4.1) >>>> >>>> This small change solves the problem but i do not know whether it is the >>>> correct way... maybe "hotmail" string should be changed widelly to >>>> "outlook|hotmail"... >>>> >>>> /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Plugin/HeaderEval.pm.orig >>>> 357c357 >>>> < if ($rcvd =~ /from \S*\.hotmail.com \(\[$IP_ADDRESS\][ \):]/ && $ip) >>>> --- >>>>> if ($rcvd =~ /from \S*\.(?:outlook|hotmail)\.com \(\[$IP_ADDRESS\][ >>>>> \):]/ && $ip) >>> >>> Any status on this? I believe you were going to open a bug report? It >>> doesn't appear this fix (or any fix) has been included to address the >>> hotmail fp's. >>> >> Committed yesterday by davej@ >> https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7534 > > > Hi! > Can error pasted below be related to this commit? > # sa-update -vD > [...] > sty 30 10:10:00.540 [3276] dbg: FreeMail: RULE (__freemail_reply) > check_freemail_replyto > sty 30 10:10:00.540 [3276] dbg: FreeMail: From address: > ign...@compiling.spamassassin.taint.org > sty 30 10:10:00.540 [3276] dbg: FreeMail: No Reply-To and From is not > freemail, skipping check > rules: failed to run FORGED_GMAIL_RCVD test, skipping: > (Can't locate object method > "check_for_forged_gmail_received_headers" via package > "Mail::SpamAssassin::PerMsgStatus" at (eval 1360) line 1587. > ) > sty 30 10:10:00.540 [3276] dbg: rules: running body tests; score so > far=0.914 > [...] > "check_for_forged_gmail_received_headers" is only available on 3.4.2, this > fixes the issue. Giovanni
Index: rules/20_head_tests.cf =================================================================== --- rules/20_head_tests.cf (revision 1822623) +++ rules/20_head_tests.cf (working copy) @@ -475,8 +475,10 @@ header FORGED_YAHOO_RCVD eval:check_for_forged_yahoo_received_headers() describe FORGED_YAHOO_RCVD 'From' yahoo.com does not match 'Received' headers +if (version >= 3.004002) header FORGED_GMAIL_RCVD eval:check_for_forged_gmail_received_headers() describe FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers +endif header __FORGED_JUNO_RCVD eval:check_for_forged_juno_received_headers()