Mail::...ountry(3pm)
π Mail::SpamAssassin::Plugin::RelayCountry β the perl manual, but make it cute
okay bestie, welcome to the RelayCountry page π this is a User Contributed Perl Documentation joint, aka a 3pm manual, and it's lowkey one of the most useful lil plugins out there. sit with me, grab a strawberry π, and let's get into it.
β¨ NAME β¨
RelayCountry β the plugin that adds message metadata telling you the country code of every relay the mail touched π
β¨ SYNOPSIS β¨
like, this is literally the whole setup, no cap:
loadplugin Mail::SpamAssassin::Plugin::RelayCountry
that's it. that's the vibe. slay. π
β¨ DESCRIPTION β¨
so the RelayCountry plugin is out here trying its best to figure out the domain country codes of every single relay in the delivery path of a message, and then it drops that info straight into the message metadata. main character detective energy fr fr π΅οΈββοΈ
here's the metadata headers and tags it adds β every single one, bestie, we're not skipping a thing:
X-Relay-Countries/_RELAYCOUNTRY_β all untrusted relays. it contains every relay starting from thetrusted_networksborder. this method has been the default since early SA versions, so it's giving legacy icon πX-Relay-Countries-External/_RELAYCOUNTRYEXT_β all external relays. contains every relay starting from theinternal_networksborder. could be useful in some cases whentrusted/msa_networksextend beyond the internal border and those need to be checked too, yk?X-Relay-Countries-All/_RELAYCOUNTRYALL_β all possible relays, which is internal plus external. the whole squad π«ΆX-Relay-Countries-Auth/_RELAYCOUNTRYAUTH_β Auth will contain all relays starting from the first relay that used authentication. for example, this could be used to check for hacked local users coming in from unexpected countries π terrifying but iconic. and heads up: if there are no authenticated relays, this one will be empty. nada. ghosted. π
β¨ REQUIREMENT β¨
not little miss independent, unfortunately β this plugin uses Mail::SpamAssassin::GeoDB and it requires a module supported by it. the example given is MaxMind::DB::Reader (GeoIP2). no module, no country codes, no service. sorry bestie π§
lowkey a reminder: _RELAYCOUNTRYAUTH_ goes empty when nothing authenticated. that's not a bug, that's just how she is π
and that's the whole page, bestie!! this came to you from perl v5.40.1, dated 2026-07-23 β go forth and trace those relays, you absolute legend πβ¨π
π¦ where this page comes from
- ubuntu stonking: spamassassin 4.0.2+svn1935691-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms