[BlueOnyx:01662] Re: filter email on language

Steffan snoord at planet.nl
Mon Jul 13 07:24:19 PET 2009

Thanks Michael,

I think i have a older verson of your filter, the plugin wasnt in the

It Works now

Some sidenote after updating your filter iXhash was installed again, in the
netherlands the iXhash plugin didnt worked
Is there a way to prefend the iXhash for reinstalling on a update


-----Oorspronkelijk bericht-----
Van: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it]
Namens Michael Stauber
Verzonden: maandag 13 juli 2009 13:54
Aan: BlueOnyx General Mailing List
Onderwerp: [BlueOnyx:01661] Re: filter email on language

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 

> 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

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
in the email header:

X-Spam-Relay-Country: NL

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

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

Blueonyx mailing list
Blueonyx at blueonyx.it

More information about the Blueonyx mailing list