Modify SpamAssassin config file to include GEO IP restrictions

Dear E.E users,

Has anybody Modified the local.cf to include GEO-IP restrictions and if so cold you please assist helping me get this resolved to include this in my SpamAssassin config file.

Here are the two resources that I have found:

http://dev.maxmind.com/geoip/geoip2/geolite2/

https://spamassassin.apache.org/full/3.4.x/doc/Mail_SpamAssassin_Plugin_URILocalBL.html
sj77Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

btanExec ConsultantCommented:
Should reference this
The RelayCountry plugin exposes the countries that a mail was relayed from -- turn it on by reading that documentation page, installing the required CPAN module IP::Country::Fast, and uncommenting the 'loadplugin' line in the /etc/mail/spamassassin/init.pre file for Mail::SpamAssassin::Plugin::RelayCountry.

The RelayCountry plugin will add metadata to the Bayesian filtering process, allowing the Bayesian filters to learn information based on countries.

You can also write rules that match specific countries and add them to your /etc/mail/spamassassin/local.cf file.
https://wiki.apache.org/spamassassin/RelayCountryPlugin

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sj77Author Commented:
Thanks btan,

Do you know of a place that gives you all the countries names very easily so I can populate the local.cf file?
btanExec ConsultantCommented:
I saw this list but may not necessary be updated as there is also other writing script to scrape wiki to keep updated.
https://gist.github.com/eparreno/205900
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
AntiSpam

From novice to tech pro — start learning today.