Page 1 of 1

[How to ] How to block GEO IP

Posted: 17 Dec 2018 22:32
by jamerson
Hi Guys,
Today i will show you how to block a country with their RELAY server.
let Say we wanna block Russia from spoofing our EFA
go to

Code: Select all

cd /etc/mail/spamassassin

Code: Select all

nano init.pre
and remove # in front of

Code: Select all

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

now edit local.cf

Code: Select all

nano local.cf
add this at the end

Code: Select all

header        RELAYCOUNTRY_BADRUSSIANS X-Relay-Countries =~ /RU/
describe      RELAYCOUNTRY_BADRUSSIANS Relayed through Russia
score           RELAYCOUNTRY_BADRUSSIANS 10.0
et Voila, you have configured the EFA to reject eamils coming from Russia.