[How to ] How to block GEO IP
Posted: 17 Dec 2018 22:32
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
and remove # in front of loadplugin Mail::SpamAssassin::Plugin::RelayCountry
now edit local.cf
add this at the end
et Voila, you have configured the EFA to reject eamils coming from Russia.
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/spamassassinCode: Select all
nano init.preCode: Select all
# now edit local.cf
Code: Select all
nano local.cfCode: Select all
header RELAYCOUNTRY_BADRUSSIANS X-Relay-Countries =~ /RU/
describe RELAYCOUNTRY_BADRUSSIANS Relayed through Russia
score RELAYCOUNTRY_BADRUSSIANS 10.0