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 will add metadata to the Bayesian filtering process, allowing the Bayesian filters to learn information based on countries.

---- (warning) Edit conflict - other version: ----
When using SA 3.1.0, you can also write rules that match specific countries and add it to your /etc/mail/local.cf file. For example:

---- (warning) Edit conflict - your version: ----
When using SA 3.1.0, you can also write rules that match specific countries and add it to your /etc/mail/spamassassin/local.cf file. For example:

---- (warning) End of edit conflict ----

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
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.

No Format



---- /!\ '''Edit conflict - other version:''' ----
   add_header all Relay-Country _RELAYCOUNTRY_

---- /!\ '''Edit conflict - your version:''' ----
   add_header all Relay-Country _RELAYCOUNTRY_

---- /!\ '''End of edit conflict''' ----

and this will show up in your MIME headers as:

No Format

---- /!\ '''Edit conflict - other version:''' ----
   X-Spam-Relay-Country: US CN RU

---- (warning) Edit conflict - your version: ----
X-Spam-Relay-Country: US CN RU
}}}

...