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.138.128.141 103.20.203.34 103.20.203.35 103.52.62.18 103.52.62.19 104.248.224.170 111.65.230.108 111.65.230.109 111.65.230.110 111.65.230.111 111.65.230.112 111.65.230.113 111.65.230.114 111.65.230.115 111.65.230.117 120.138.16.0/20 121.127.44.56 121.127.44.59 13.238.202.140 13.238.202.141 13.238.202.142 13.72.249.64 138.197.213.185 142.250.101.26 142.250.4.26 162.159.137.9 162.159.138.9 172.217.194.26 172.217.194.27 172.217.78.26 172.217.78.27 172.253.158.27 173.194.43.26 173.194.43.27 176.119.200.128 176.119.200.129 176.74.25.170 176.74.25.171 185.205.70.128 185.205.70.129 185.70.42.128 185.70.42.129 192.178.230.26 192.178.230.27 20.37.196.195 208.43.88.227 208.74.120.0/21 216.198.79.1 223.165.64.0/20 23.227.38.65 2403:7000::/32 2404:6800:4003:0c03:0000:0000:0000:001a 2404:6800:4003:0c06:0000:0000:0000:001a 2404:6800:4003:0c1a:0000:0000:0000:001a 2404:6800:4003:0c24:0000:0000:0000:001a 2404:6800:4003:0c24:0000:0000:0000:001b 2404:6800:400b:c01b:0000:0000:0000:001b 2404:8280:a111:0228:0000:0000:0000:0002 2404:8280:a111:0228:0000:0000:0000:0003 2405:3f00:a111:0126:0000:0000:0000:0002 2405:3f00:a111:0126:0000:0000:0000:0003 2405:3f00:a111:1603:0000:0000:0000:0230 2407:2200:a111:0102:0000:0000:0000:0002 2407:2200:a111:0102:0000:0000:0000:0003 2604:a880:0002:00d0:0000:0000:0306:0001 2604:a880:0400:00d1:0000:0000:00cd:9001 2607:f8b0:400e:0c1e:0000:0000:0000:001a 2607:f8b0:4023:0c06:0000:0000:0000:001a 2607:f8b0:4023:1c05:0000:0000:0000:001b 27.54.95.234 27.54.95.235 2a00:fd80:a111:0239:0000:0000:0000:0002 2a00:fd80:a111:0239:0000:0000:0000:0003 2a01:0111:f403:ca0b:0000:0000:0000:0001 2a01:0111:f403:ca0b:0000:0000:0000:0002 2a01:0111:f403:ca1a:0000:0000:0000:0000 2a01:0111:f403:ca1a:0000:0000:0000:0001 2a01:0111:f403:cc09:0000:0000:0000:0000 2a01:0111:f403:cc1a:0000:0000:0000:0008 2a01:0111:f403:cc1f:0000:0000:0000:0004 2a01:0111:f403:cc31:0000:0000:0000:0000 2a01:0111:f403:cc31:0000:0000:0000:0001 2a01:0111:f403:cc31:0000:0000:0000:0002 2a01:0111:f403:cc31:0000:0000:0000:0003 2a01:0111:f403:cc33:0000:0000:0000:0000 2a01:0111:f403:cc33:0000:0000:0000:0001 2a01:0111:f403:cc3d:0000:0000:0000:0001 2a01:0111:f403:cc3d:0000:0000:0000:0002 2a01:0111:f403:cc3d:0000:0000:0000:0004 2a01:0111:f403:cc3d:0000:0000:0000:0007 2a02:6ea0:d71e:0000:0000:0000:0000:0001 2a02:6ea0:d71e:0000:0000:0000:0000:0002 43.245.52.230 43.250.249.129 52.101.124.117 52.101.137.0 52.101.149.0 52.101.149.1 52.101.149.2 52.101.149.9 52.101.151.0 52.101.151.5 52.101.157.80 52.101.234.0 52.101.234.2 52.101.234.4 52.101.234.6 52.101.89.0 52.101.89.2 52.101.99.0 52.101.99.2 74.125.24.26 74.125.24.27 74.125.68.27 94.100.132.8 94.100.134.8 94.100.136.7 94.100.136.8 # 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