[BlueOnyx:01661] Re: filter email on language

Michael Stauber mstauber at blueonyx.it
Mon Jul 13 06:53:42 -05 2009


Hi Steffan,

> Do i have to do something to activate the plugin

Not really. If you're using the AV-SPAM you're fine. If not, then check your 
/etc/mail/spamassassin/init.pre and see if it has this lines in it:

# Mail::SpamAssassin::Plugin::RelayCountry
loadplugin Mail::SpamAssassin::Plugin::RelayCountry

This requires the pPerm module perl-IP-Country, which you should have 
installed.

> The file is there and i see the line in the config:
> add_header all Relay-Country _RELAYCOUNTRY_
>
> i enabled
>    header          RELAYCOUNTRY_NL X-Relay-Countries =~ /NL/
>    describe        RELAYCOUNTRY_NL Relayed through Netherlands
>    score           RELAYCOUNTRY_NL 0.0

I just did some tests and I think I have to backpedal a little on what I said 
earlier:

If you have a rule like the one you added, then emails originating from (or 
passing through) mailserver(s) in NL should generate the following extra line 
in the email header:

X-Spam-Relay-Country: NL

If it passes through multiple countries, it may show up as something like 
this:

X-Spam-Relay-Country: US GB NL 

However, the AV-SPAM uses spamass-milter for integrating into Sendmail and 
*that* particular header-line will not be added to the email headers. 

However, if your rule has a different score than 0.0 (make it 0.1 for 
example!), then it ought to show up as "RELAYCOUNTRY_NL" under the listet 
tests in the "X-Spam-Status:" line. Which is then something you could filter 
on using a procmail rule.

-- 
With best regards

Michael Stauber




More information about the Blueonyx mailing list