You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2005/10/20 23:13:48 UTC

[Spamassassin Wiki] Update of "RelayCountryPlugin" by JustinMason

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by JustinMason:
http://wiki.apache.org/spamassassin/RelayCountryPlugin

The comment on the change is:
yes, it should indeed be possible

------------------------------------------------------------------------------
  
  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 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}}}.
  
- 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. You can '''NOT''' use this plugin to create rules.
+ 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.
  
+ When using SA 3.1.0, you can also write rules that match specific countries, e.g.:
+ 
+ {{{
+ 
+    header CAME_VIA_CHINA   X-Relay-Countries =~ /CN/
+ 
+ }}}
+