https://github.com/bodgit/spamassassin-relaycountry-geoip
Updated SpamAssassin RelayCountry plugin with IPv6 smarts
https://github.com/bodgit/spamassassin-relaycountry-geoip
Last synced: 4 months ago
JSON representation
Updated SpamAssassin RelayCountry plugin with IPv6 smarts
- Host: GitHub
- URL: https://github.com/bodgit/spamassassin-relaycountry-geoip
- Owner: bodgit
- Created: 2011-11-27T21:37:01.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-27T22:24:03.000Z (over 13 years ago)
- Last Synced: 2025-03-05T04:34:06.193Z (4 months ago)
- Language: Perl
- Homepage: http://bodgitandscarper.co.uk/
- Size: 89.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
An updated SpamAssassin plugin to replace the current RelayCountry plugin.
The main problem with the current RelayCountry plugin is it doesn't support
IPv6, this is entirely down to the underlying IP::Country module used to do
the IP -> Country lookups.The Geo::IP module that uses the Maxmind GeoIP C library and data files has
both IPv4 and IPv6 data available so it is an ideal choice. The data files
can just be downloaded from the website which fixes another annoying problem
with IP::Country; you need to build updated data files yourself and they can
take a fair chunk of memory.Enable the plugin with the usual:
loadplugin Mail::SpamAssassin::Plugin::RelayCountry2
Don't enable it at the same time as the original RelayCountry plugin as
both plugins will try and create the same metadata/headers.I've replicated the behaviour of IP::Country in that it returns '**' for
private IPv4 addresses and I've also added similar rules for the standard
set of private IPv6 addresses as per the relevant RFC.