RW-15 wrote:
> 
> On Sat, 18 Jul 2009 18:20:49 -0700 (PDT)
> snowweb <[email protected]> wrote:
> 
>> 
>> I want to use RelayCountry but I have no idea where to find
>> IP::Country::Fast Perl module, which it apparently depends on.
>>
> 
> I would suggest you look through your OS's packing system for
> something  that looks like it might contain this, e.g. in FreeBSD it's
> called  p5-IP-Country.
> 
> If all else fails then get it from CPAM.
> 
> 

Thanks buddy, 

Someone replied to directly, this was his response:

just run this command:

# cpan

and when in, do this:

install CPAN

which takes a while for that to 'upgrade' but when it's done, run

reload cpan

(yes, lowercase this time) which will not take as long, but after that
and while still in the cpan 'shell', type this:

install IP::Country::Fast

and to be sure it will work, also type:

install Mail::SpamAssassin::Plugin::RelayCountry

Then in /etc/mail/spamassassin/local.cf, add this:

add_header all Relay-Country _RELAYCOUNTRY_

and if you want to use Relay-Country rules to add scores, do this:

header          RELAYCOUNTRY_CN X-Relay-Countries =~ /CN/
describe        RELAYCOUNTRY_CN Relayed through China
score           RELAYCOUNTRY_CN 3.0

header          RELAYCOUNTRY_RU X-Relay-Countries =~ /RU/
describe        RELAYCOUNTRY_RU Relayed through Russian Federation
score           RELAYCOUNTRY_RU 3.0

and whatever other countries you wish to add

And I hope that helps.

Karl


I followed his instructions and all seems to have gone according to plan.
Let's see if it makes any difference to ths amount of Spam that gets
through.

Thanks for your help guys.

pete

-- 
View this message in context: 
http://www.nabble.com/I-want-to-use-RelayCountry-tp24553321p24554703.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to