Mail::SpamAssassin::Plugin::RelayCountry3pm
Add message metadata indicating the country code of each relay
Usage
loadplugin Mail::SpamAssassin::Plugin::RelayCountry
Overview
The RelayCountry plugin attempts to determine the domain country codes of each relay used in the delivery path of messages and add that information to the message metadata.
Following metadata headers and tags are added:
X-Relay-Countries _RELAYCOUNTRY_All untrusted relays. Contains all relays starting from thetrusted_networks border. This method has been used by default sinceearly SA versions.X-Relay-Countries-External _RELAYCOUNTRYEXT_All external relays. Contains all relays starting from theinternal_networks border. Could be useful in some cases whentrusted/msa_networks extend beyond the internal border and thoseneed to be checked too.X-Relay-Countries-All _RELAYCOUNTRYALL_All possible relays (internal + external).X-Relay-Countries-Auth _RELAYCOUNTRYAUTH_Auth will contain all relays starting from the first relay that usedauthentication. For example, this could be used to check for hackedlocal users coming in from unexpected countries. If there are noauthenticated relays, this will be empty.
Requirement
This plugin uses Mail::SpamAssassin::GeoDB and requires a module supported by it, for example MaxMind::DB::Reader (GeoIP2).
Releases
12 releases since Debian 3.1 (Sarge); the text changed 11 times.