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 requires the GeoIP2, Geo::IP, IP::Country::DB_File or
41 IP::Country::Fast module from CPAN. For backward compatibility
42 IP::Country::Fast is used as fallback if no db_type is specified in the
43 config file.
44
46 The following options can be used in both site-wide ("local.cf") and
47 user-specific ("user_prefs") configuration files to customize how
48 SpamAssassin handles incoming email messages.
49
50 country_db_type STRING
51 This option tells SpamAssassin which type of Geo database to use.
52 Valid database types are GeoIP, GeoIP2, DB_File and Fast.
53
54 country_db_path STRING
55 This option tells SpamAssassin where to find MaxMind GeoIP2 or
56 IP::Country::DB_File database.
57
58 If not defined, GeoIP2 default search includes:
59 /usr/local/share/GeoIP/GeoIP2-Country.mmdb
60 /usr/share/GeoIP/GeoIP2-Country.mmdb
61 /var/lib/GeoIP/GeoIP2-Country.mmdb
62 /usr/local/share/GeoIP/GeoLite2-Country.mmdb
63 /usr/share/GeoIP/GeoLite2-Country.mmdb
64 /var/lib/GeoIP/GeoLite2-Country.mmdb
65 (and same paths again for -City.mmdb, which also has country
66 functionality)
67
68
69
70perl v5.32.1 20M2a1i-l0:3:-S2p5amAssassin::Plugin::RelayCountry(3)