NAME

Mailfetch::Rule::GeoIP - match on the country from an originating IP

SYNOPSIS

  perl -MMailfetch::Rule::GeoIP=test,mailfile,re,/CN|KR/ -e1

  perl -MMailfetch::Rule::GeoIP -e "Mailfetch::Rule::GeoIP->update_database"

HOW IT WORKS

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/"

IMPLICIT PACKAGES

The module also sets up a lot of magic package names, Mailfetch::Rule::GeoIP::CN for China etc.