NAME
RelayCountry - add message metadata indicating the country code of each relay
SYNOPSIS
loadplugin Mail::SpamAssassin::Plugin::RelayCountry
DESCRIPTION
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).