You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Daniel Aquino <mr...@gmail.com> on 2007/05/23 21:24:28 UTC

RelayCountry

Does anyone know actually know where the:
"Mail::SpamAssassin::Plugin::RelayCountry"
module is actually ran ?

I dont see anything in /usr/share/spamassassin/* that is doing it...

Re: RelayCountry

Posted by Matt Kettler <mk...@verizon.net>.
Daniel Aquino wrote:
> Does anyone know actually know where the:
> "Mail::SpamAssassin::Plugin::RelayCountry"
> module is actually ran ?
>
> I dont see anything in /usr/share/spamassassin/* that is doing it...
There are no default rules that make use of it.

By default, only the bayes subsystem uses it, treating the relayed
countries as additional bayes tokens.

If you want to do some country-based scoring, you can add some of your
own rules such as these:

header RELAY_CN X-Relay-Countries=~/\bCN\b/
describe RELAY_CN       Relayed through china
score RELAY_CN 1.0


header RELAY_KR X-Relay-Countries=~/\bKR\b/
describe RELAY_KR       Relayed through Korea
score RELAY_KR 1.0

But remember, keep your scoring light. This will pick up *ALL* countries
the mail was relayed through, so it WILL hit mailing list posts by
foreign senders. There's a *LOT* of mailing list traffic from countries
you wouldn't expect.








Re: RelayCountry

Posted by Mariusz Kruk <Ma...@epsilon.eu.org>.
Daniel Aquino napisaƂ(a):
> Does anyone know actually know where the:
> "Mail::SpamAssassin::Plugin::RelayCountry"
> module is actually ran ?
> 
> I dont see anything in /usr/share/spamassassin/* that is doing it...

I don't know about you, but I have:

epsilon:/etc/spamassassin> grep RelayCountry *
init.pre:loadplugin Mail::SpamAssassin::Plugin::RelayCountry

But I have also:

epsilon:/etc/spamassassin> grep RELAY local.cf
add_header all Relay _RELAYCOUNTRY_

(and IIRC, that was also necessary for this plugin to work properly).