Mailfetch::Rule::GeoIP - match on the country from an originating IP
perl -MMailfetch::Rule::GeoIP=test,mailfile,re,/CN|KR/ -e1 perl -MMailfetch::Rule::GeoIP -e "Mailfetch::Rule::GeoIP->update_database"
This rule uses Geo::IP::PurePerl to determine the countries through which the mail passed, according to the Received:
headers.
update_database $URL
Updates the database from the given url or the default url:
http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz
Needs LWP::Simple for that.
"This product includes GeoIP data created by MaxMind, available from http://maxmind.com/"
The module also sets up a lot of magic package names, Mailfetch::Rule::GeoIP::CN
for China etc.