You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by co...@spamassassin.apache.org on 2005/02/18 03:37:24 UTC
[SpamAssassin Wiki] New: RelayCountryPlugin
Date: 2005-02-17T18:37:24
Editor: JustinMason
Wiki: SpamAssassin Wiki
Page: RelayCountryPlugin
URL: http://wiki.apache.org/spamassassin/RelayCountryPlugin
no comment
New Page:
= Using the RelayCountry plugin =
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}}}.
Once this plugin is running, you can write rules that match specific countries, e.g.:
{{{
header CAME_VIA_CHINA X-Relay-Countries =~ /CN/
}}}