smtpd/qpsmtpd — pull request #28 by msimerson (2012-06-06 20:20:45+00:00)
Title: Geoip

added GeoIP City support, continent, distance

wrote lots of succinct POD, and lots more tests.

This plugin saves geographic information in the following connection
notes:

geoip_country - 2 char country code
geoip_country_name - full english name of country
geoip_continent - 2 char continent code
geoip_distance - distance in kilometers

And adds entries like this to your logs:

(connect) ident::geoip: US, United States, NA, 1319 km
(connect) ident::geoip: IN, India, AS, 13862 km
(connect) ident::geoip: fail: no results
(connect) ident::geoip: CA, Canada, NA, 2464 km