[How to ] How to block GEO IP

Questions and answers about how to do stuff
Post Reply
jamerson
Posts: 120
Joined: 19 Aug 2017 18:57
Location: kaaskop

[How to ] How to block GEO IP

Post by jamerson » 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

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.
Version eFa 4.0.0 RC1 now available in testing repo. Come join us in advancing eFa!

Post Reply