Mail::...Lookup(3pm)
π Mail::MtPolicyd::Plugin::GeoIPLookup β the mtpolicyd plugin for checking geo info of an client_address π
okay bestie, so this is a User Contributed Perl Documentation page for Mail::...Lookup(3pm) and it's genuinely so useful, let me walk you through it π«Ά
β¨ VERSION β¨
version 2.05 β that's the one, that's the vibe, periodt π
πΈ DESCRIPTION πΈ
okay so picture this: this plugin goes and queries a GeoIP to get the country code of the client_address. That's it, that's the whole job. Iconic, honestly.
But here's the tea β β the whole thing is split into two plugins, not one:
- this plugin, which does the Lookup π
- and the GeoIPAction plugin, which is the one you use to take actions based on that country code π―
so like, one finds out where they're from, the other decides what to do about it. main character duo energy fr fr π
π PARAMETERS π
just one, and she's simple:
database(default:/usr/share/GeoIP/GeoIP.dat) β the path to the geoip country database πΊοΈβ¨
that's literally it. one param. she's low maintenance, we love her.
π MAXMIND GEOIP COUNTRY DATABASE π
so if you're on a debian system (iykyk), you can install the country database with the geoip-database package. easy peasy π
and you can also download it directly from Maxmind:
http://dev.maxmind.com/geoip/geoip2/geolite2/
(choose "GeoLite2 Country/DB") β yes bestie, you have to pick that one, don't just grab anything π
π AUTHOR π
Markus Benning <ich@markusbenning.de> β the legend, the icon, the moment π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2014 by Markus Benning <ich@markusbenning.de>.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
fr fr, that's the actual license, respect it π«‘
and that's the whole page, bestie!! πβ¨ this was Mail::...Lookup(3pm) from perl v5.38.2, dated 2024-05-26 β go forth and geo-locate responsibly, mwah π
ππ¦
π¦ where this page comes from
- debian trixie: mtpolicyd 2.05-1.2 Β· GPL-2.0-only
- ubuntu questing: mtpolicyd 2.05-1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms