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 🌟


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