Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
The \[http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Plugin_RelayCountry.html RelayCountry\] plugin exposes the countries that a mail was relayed from -- turn it on by reading that documentation page, installing the required CPAN module required {{{cpan IP::Country::Fast}}, and uncommenting the 'loadplugin' line in the {{/etc/mail/spamassassin/init.pre}} file for {{Mail::SpamAssassin::Plugin::RelayCountry}}.

...

No Format

   header          RELAYCOUNTRY_CN X-Relay-Countries =~ /CN/
   describe        RELAYCOUNTRY_CN Relayed through China
   score           RELAYCOUNTRY_CN 3.0

   header          RELAYCOUNTRY_RU X-Relay-Countries =~ /RU/
   describe        RELAYCOUNTRY_RU Relayed through Russian Federation
   score           RELAYCOUNTRY_RU 2.0

Wiki Markup
You can get a list of IANA country codes from \[http://www.iana.org/cctld/cctld-whois.htm\].  You can get a list of countries that statistically relay most of the spam by looking at the source file for {{lib/Mail/SpamAssassin/EvalTests.pm}} and reading the comments surrounding {{$CCTLDS_WITH_LOTS_OF_OPEN_RELAYS}}.

Wiki Markup
Also for 3.1.0, you can apply a patch \[http://bugzilla.spamassassin.org/show_bug.cgi?id=3815\] which will allow you to add a separate MIME header that shows all the message's relay countries, independent of the rules.

...