File: //etc/mail/spamassassin/local.cf
# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
# Only a small subset of options are listed below
#
###########################################################################
# A 'contact address' users should contact for more info. (replaces
# _CONTACTADDRESS_ in the report template)
# report_contact youremailaddress@domain.tld
# Add *****SPAM***** to the Subject header of spam e-mails
#
# rewrite_header Subject *****SPAM*****
# Save spam messages as a message/rfc822 MIME attachment instead of
# modifying the original message (0: off, 2: use text/plain instead)
#
# report_safe 1
# Set which networks or hosts are considered 'trusted' by your mail
# server (i.e. not spammers)
#
trusted_networks 104.37.34.230 104.37.34.231 104.37.34.232 104.37.34.233 108.166.43.1 108.166.43.2 108.177.15.26 108.177.15.27 118.139.179.208 135.181.179.114 136.143.183.44 139.162.173.118 142.250.110.26 142.250.110.27 142.250.147.26 142.250.147.27 142.251.168.26 142.251.168.27 142.251.173.26 142.251.173.27 142.251.5.26 142.251.5.27 146.20.161.1 162.159.205.11 162.159.205.12 162.159.205.13 162.159.205.17 162.159.205.18 162.159.205.19 162.159.205.23 162.159.205.24 162.159.205.25 162.255.118.13 162.255.118.28 162.255.118.29 162.255.118.30 162.255.118.31 162.255.118.7 162.255.118.8 162.55.175.109 172.253.130.26 172.253.130.27 172.253.144.26 172.253.144.27 172.65.182.103 173.194.76.26 173.203.187.1 184.106.54.1 192.178.213.26 192.178.213.27 192.250.234.229 192.250.234.230 192.250.235.36 192.250.239.173 195.250.23.158 195.250.23.54 198.38.94.23 198.38.94.5 198.38.94.66 2001:41d0:35f::/48 204.141.43.44 208.74.120.0/21 216.55.101.204 23.227.38.65 2404:6800:4003:0c24:0000:0000:0000:001a 2606:4700:0090:0000:c1f8:f874:2386:b61f 2606:4700:00f5:0000:0000:0000:0000:000b 2606:4700:00f5:0000:0000:0000:0000:000c 2606:4700:00f5:0000:0000:0000:0000:000d 2606:4700:00f5:0000:0000:0000:0000:000e 2606:4700:00f5:0000:0000:0000:0000:000f 2606:4700:00f5:0000:0000:0000:0000:0010 2606:4700:00f5:0000:0000:0000:0000:0011 2606:4700:00f5:0000:0000:0000:0000:0012 2606:4700:00f5:0000:0000:0000:0000:0013 2a00:1450:400c:0c00:0000:0000:0000:001a 2a00:1450:400c:0c02:0000:0000:0000:001a 2a00:1450:400c:0c02:0000:0000:0000:001b 2a00:1450:400c:0c04:0000:0000:0000:001a 2a00:1450:400c:0c04:0000:0000:0000:001b 2a00:1450:400c:0c06:0000:0000:0000:001a 2a00:1450:400c:0c06:0000:0000:0000:001b 2a00:1450:400c:0c07:0000:0000:0000:001a 2a00:1450:400c:0c07:0000:0000:0000:001b 2a00:1450:400c:0c09:0000:0000:0000:001a 2a00:1450:400c:0c09:0000:0000:0000:001b 2a00:1450:400c:0c0a:0000:0000:0000:001a 2a00:1450:400c:0c0a:0000:0000:0000:001b 2a00:1450:400c:0c0b:0000:0000:0000:001a 2a00:1450:400c:0c0b:0000:0000:0000:001b 2a00:1450:400c:0c0c:0000:0000:0000:001a 2a00:1450:400c:0c0c:0000:0000:0000:001b 2a00:1450:400c:0c0d:0000:0000:0000:001a 2a00:1450:400c:0c0d:0000:0000:0000:001b 2a00:1450:400c:0c1b:0000:0000:0000:001a 2a00:1450:400c:0c1d:0000:0000:0000:001a 2a00:1450:400c:0c1d:0000:0000:0000:001b 2a00:1450:400c:0c1f:0000:0000:0000:001a 2a00:1450:4010:0c20:0000:0000:0000:001a 2a00:1450:4013:0c1e:0000:0000:0000:001b 2a00:1450:4025:0c01:0000:0000:0000:001a 2a00:1450:4025:0c01:0000:0000:0000:001b 2a01:0111:f403:ca04:0000:0000:0000:0009 2a01:0111:f403:ca04:0000:0000:0000:000c 2a01:0111:f403:ca09:0000:0000:0000:000b 2a01:0111:f403:ca09:0000:0000:0000:000c 2a01:0111:f403:ca0b:0000:0000:0000:0000 2a01:0111:f403:ca0b:0000:0000:0000:0001 2a01:0111:f403:ca1a:0000:0000:0000:0000 2a01:0111:f403:ca1a:0000:0000:0000:0001 2a01:0111:f403:cc2c:0000:0000:0000:0000 2a01:0111:f403:cc2c:0000:0000:0000:0001 2a01:0111:f403:cc2d:0000:0000:0000:0000 2a01:0111:f403:cc2d:0000:0000:0000:0001 2a01:0111:f403:cc2f:0000:0000:0000:0000 2a01:0111:f403:cc30:0000:0000:0000:0000 2a01:0111:f403:cc30:0000:0000:0000:0001 2a01:0111:f403:cc30:0000:0000:0000:0003 2a01:04f8:c013:82dd:0000:0000:0000:0001 2a05:f480:1400:3915:5400:05ff:fe3a:a527 51.161.15.124 51.178.216.0/24 52.101.144.0 52.101.144.3 52.101.145.0 52.101.145.2 52.101.147.1 52.101.148.1 52.101.148.13 52.101.148.3 52.101.68.0 52.101.68.10 52.101.68.16 52.101.73.15 52.101.89.0 52.101.89.1 52.101.89.2 52.101.99.0 64.233.166.26 64.233.166.27 64.233.167.26 64.233.167.27 64.233.184.26 64.233.184.27 66.102.1.27 74.125.133.26 74.125.133.27 74.125.206.26 74.125.206.27 74.125.71.26 74.125.71.27 92.204.80.3 95.179.187.2 97.74.206.231 # Autoconfigured by cPanel - Remove this end of line comment to avoid future updates
# Set file-locking method (flock is not safe over NFS, but is faster)
#
# lock_method flock
# Set the threshold at which a message is considered spam (default: 5.0)
#
# required_score 5.0
# Use Bayesian classifier (default: 1)
#
# use_bayes 1
# Bayesian classifier auto-learning (default: 1)
#
# bayes_auto_learn 1
# Set headers which may provide inappropriate cues to the Bayesian
# classifier
#
# bayes_ignore_header X-Bogosity
# bayes_ignore_header X-Spam-Flag
# bayes_ignore_header X-Spam-Status
# Whether to decode non- UTF-8 and non-ASCII textual parts and recode
# them to UTF-8 before the text is given over to rules processing.
#
# normalize_charset 1
# Textual body scan limit (default: 50000)
#
# Amount of data per email text/* mimepart, that will be run through body
# rules. This enables safer and faster scanning of large messages,
# perhaps having very large textual attachments. There should be no need
# to change this well tested default.
#
# body_part_scan_size 50000
# Textual rawbody data scan limit (default: 500000)
#
# Amount of data per email text/* mimepart, that will be run through
# rawbody rules.
#
# rawbody_part_scan_size 500000
# Some shortcircuiting, if the plugin is enabled
#
ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
#
# default: strongly-welcomelisted mails are *really* welcomelisted now, if
# the shortcircuiting plugin is active, causing early exit to save CPU
# load. Uncomment to turn this on
#
# SpamAssassin tries hard not to launch DNS queries before priority -100.
# If you want to shortcircuit without launching unneeded queries, make
# sure such rule priority is below -100. These examples are already:
#
# shortcircuit USER_IN_WELCOMELIST on
# shortcircuit USER_IN_DEF_WELCOMELIST on
# shortcircuit USER_IN_ALL_SPAM_TO on
# the opposite; blocklisted mails can also save CPU
#
# shortcircuit USER_IN_BLOCKLIST on
# shortcircuit USER_IN_BLOCKLIST_TO on
# if you have taken the time to correctly specify your "trusted_networks",
# this is another good way to save CPU
#
# shortcircuit ALL_TRUSTED on
# and a well-trained bayes DB can save running rules, too
#
# shortcircuit BAYES_99 spam
# shortcircuit BAYES_00 ham
endif # Mail::SpamAssassin::Plugin::Shortcircuit
loadplugin Mail::SpamAssassin::Plugin::ResourceLimits
resource_limit_mem 536870912
dns_available yes # Autoconfigured by cPanel - comment out this line or set to no to avoid future updates