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 103.76.228.28 104.254.128.0/22 104.254.130.218 108.177.11.26 108.177.11.27 119.252.155.15 136.143.183.44 142.250.9.26 147.182.130.78 147.182.160.18 147.182.180.139 147.182.189.184 157.180.29.100 160.30.208.12 164.90.197.105 164.90.197.143 164.90.197.162 164.90.197.79 169.148.146.168 169.148.149.118 172.217.215.27 172.65.182.103 173.194.212.121 185.151.28.67 192.178.131.26 192.178.131.27 192.178.218.26 192.178.218.27 192.185.98.23 192.187.111.242 195.178.102.9 204.141.43.44 208.74.120.0/21 209.85.144.26 209.85.144.27 216.69.141.113 216.69.141.114 216.69.141.162 216.69.141.71 216.69.141.78 216.69.141.84 2602:faa9:6002:0163:5a41:40bc:7c31:d009 2606:4700:0090:0000:c1f8:f874:2386:b61f 2607:f8b0:4002:0c05:0000:0000:0000:001a 2607:f8b0:4002:0c05:0000:0000:0000:001b 2607:f8b0:4002:0c06:0000:0000:0000:001a 2607:f8b0:4002:0c06:0000:0000:0000:001b 2607:f8b0:4002:0c0c:0000:0000:0000:001b 2607:f8b0:4002:0c10:0000:0000:0000:001a 2607:f8b0:4002:0c10:0000:0000:0000:001b 2607:f8b0:4004:0c25:0000:0000:0000:001a 2607:f8b0:4004:0c25:0000:0000:0000:001b 2607:f8b0:400c:0c01:0000:0000:0000:001a 2607:f8b0:400c:0c01:0000:0000:0000:001b 2607:f8b0:400c:0c11:0000:0000:0000:0079 2607:f8b0:400d:0c0e:0000:0000:0000:001b 2607:f8b0:4023:141f:0000:0000:0000:001a 2607:f8b0:4023:141f:0000:0000:0000:001b 2a01:0111:f403:ca04:0000:0000:0000:0001 2a01:0111:f403:ca04:0000:0000:0000:0008 2a01:0111:f403:ca04:0000:0000:0000:000e 2a01:0111:f403:ca09:0000:0000:0000:000f 2a01:0111:f403:ca28:0000:0000:0000:0000 2a01:0111:f403:ca28:0000:0000:0000:0001 2a01:0111:f403:ca2a:0000:0000:0000:0000 2a01:0111:f403:ca2a: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 31.14.134.128 46.105.72.90 5.83.144.4 50.17.202.0 52.101.144.0 52.101.144.3 52.101.145.0 52.101.145.2 52.101.160.0 52.101.160.1 52.101.162.0 52.101.162.1 52.101.68.29 52.101.73.12 52.101.73.30 52.101.73.6 64.233.176.26 64.233.176.27 64.233.177.26 64.233.177.27 65.21.227.219 74.125.138.26 74.125.21.26 74.125.21.27 84.238.132.15 98.88.238.82 98.89.99.138 # 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