]> git.proxmox.com Git - pmg-api.git/blob - src/templates/init.pre.in
templates: sync spamassassin templates with 4.0.0 upstream
[pmg-api.git] / src / templates / init.pre.in
1 # This is the right place to customize your installation of SpamAssassin.
2 #
3 # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
4 # tweaked.
5 #
6 # This file contains plugin activation commands for plugins included
7 # in SpamAssassin 3.0.x releases. It will not be installed if you
8 # already have a file in place called "init.pre".
9 #
10 # There are now multiple files read to enable plugins in the
11 # /etc/mail/spamassassin directory; previously only one, "init.pre" was
12 # read. Now both "init.pre", "v310.pre", and any other files ending in
13 # ".pre" will be read. As future releases are made, new plugins will be
14 # added to new files, named according to the release they're added in.
15 ###########################################################################
16
17 # Version compatibility - Welcomelist/Blocklist
18 # In SpamAssassin 4.0, rules containing "whitelist" or "blacklist" have been
19 # renamed to contain more racially neutral "welcomelist" and "blocklist"
20 # terms. When this compatibility flag is enabled, old rule names from stock
21 # rules will not hit anymore alongside the new ones. For more information,
22 # see: https://wiki.apache.org/spamassassin/WelcomelistBlocklist
23 #
24 enable_compat welcomelist_blocklist
25
26 # RelayCountry - add metadata for Bayes learning, marking the countries
27 # a message was relayed through
28 #
29 # Note: This requires the Geo::IP Perl module
30 #
31 # loadplugin Mail::SpamAssassin::Plugin::RelayCountry
32
33 [% IF pmg.spam.rbl_checks %]
34 # URIDNSBL - look up URLs found in the message against several DNS
35 # blocklists.
36 #
37 loadplugin Mail::SpamAssassin::Plugin::URIDNSBL
38 [% END %]
39
40
41 [% IF pmg.spam.rbl_checks %]
42 # SPF - perform SPF verification.
43 #
44 loadplugin Mail::SpamAssassin::Plugin::SPF
45 [% END %]
46
47 # always load dkim to improve accuracy
48 loadplugin Mail::SpamAssassin::Plugin::DKIM