1Mail::SpamAssassin::PluUgsienr::CRoenltaryiCbouutMneatdirlyP:(e:3rS)lpaDmoAcsusmaesnstiant:i:oPnlugin::RelayCountry(3)
2
3
4
6 RelayCountry - add message metadata indicating the country code of each
7 relay
8
10 loadplugin Mail::SpamAssassin::Plugin::RelayCountry
11
13 The RelayCountry plugin attempts to determine the domain country codes
14 of each relay used in the delivery path of messages and add that
15 information to the message metadata.
16
17 Following metadata headers and tags are added:
18
19 X-Relay-Countries _RELAYCOUNTRY_
20 All untrusted relays. Contains all relays starting from the
21 trusted_networks border. This method has been used by default since
22 early SA versions.
23
24 X-Relay-Countries-External _RELAYCOUNTRYEXT_
25 All external relays. Contains all relays starting from the
26 internal_networks border. Could be useful in some cases when
27 trusted/msa_networks extend beyond the internal border and those
28 need to be checked too.
29
30 X-Relay-Countries-All _RELAYCOUNTRYALL_
31 All possible relays (internal + external).
32
33 X-Relay-Countries-Auth _RELAYCOUNTRYAUTH_
34 Auth will contain all relays starting from the first relay that used
35 authentication. For example, this could be used to check for hacked
36 local users coming in from unexpected countries. If there are no
37 authenticated relays, this will be empty.
38
40 This plugin uses Mail::SpamAssassin::GeoDB and requires a module
41 supported by it, for example MaxMind::DB::Reader (GeoIP2).
42
43
44
45perl v5.36.0 20M2a3i-l0:1:-S2p1amAssassin::Plugin::RelayCountry(3)