Bug 7810 - gmail has an extra dot in rDNS
Summary: gmail has an extra dot in rDNS
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Libraries (show other bugs)
Version: unspecified
Hardware: All All
: P2 minor
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-25 21:54 UTC by RW
Modified: 2020-07-17 05:03 UTC (History)
2 users (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description RW 2020-04-25 21:54:02 UTC
I noticed that gmail includes a trailing dot in rDNS.


Received: from mail.apache.org (hermes.apache.org. [207.244.88.153])
        by mx.google.com with SMTP id s20si659662edr.444.2020.04.22.23.41.32
        for <rwmaillists@gmail.com>;
        Wed, 22 Apr 2020 23:41:33 -0700 (PDT)

This dot is present in the 'rdns=' field in Relays-External etc.

Rather than fixing all the rules this breaks, I think it would cause less trouble in the long run to strip trailing dots in the end section of parse_received_line().
Comment 1 Kevin A. McGrail 2020-04-26 12:55:38 UTC
+1 to cleaning it up in parsed_received_line().
Comment 2 Henrik Krohns 2020-07-17 05:03:58 UTC
Sending        spamassassin-3.4/lib/Mail/SpamAssassin/Message/Metadata/Received.pm
Sending        trunk/lib/Mail/SpamAssassin/Message/Metadata/Received.pm
Sending        trunk/rulesrc/sandbox/gbechis/20_misc.cf
Sending        trunk/rulesrc/sandbox/smf/20_smf.cf
Transmitting file data ....done
Committing transaction...
Committed revision 1879979.