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.126.92.245 103.126.92.246 103.126.92.251 103.126.92.252 103.15.20.20 103.86.78.2 103.86.78.3 108.177.125.26 108.177.97.26 108.177.97.27 116.48.131.5 119.8.96.0/19 136.143.191.44 142.250.101.26 142.250.101.27 142.251.170.26 159.138.134.109 159.138.52.146 162.215.2.27 162.215.2.30 162.215.3.25 162.215.3.26 162.215.3.30 172.217.78.26 172.217.78.27 173.194.43.26 173.194.43.27 192.178.163.27 192.178.164.26 192.178.164.27 204.141.33.44 208.74.120.0/21 213.21.215.222 219.94.156.150 2404:6800:4008:0c04:0000:0000:0000:001b 2404:6800:4008:0c05:0000:0000:0000:001a 2404:6800:4008:0c06:0000:0000:0000:001a 2404:6800:4008:0c06:0000:0000:0000:001b 2404:6800:4008:0c07:0000:0000:0000:001a 2404:6800:4008:0c07:0000:0000:0000:001b 2404:6800:4008:0c13:0000:0000:0000:001a 2404:6800:4008:0c1b:0000:0000:0000:001a 2607:f8b0:400e:0c17:0000:0000:0000:001b 2607:f8b0:400e:0c1e:0000:0000:0000:001a 2607:f8b0:400e:0c1e:0000:0000:0000:001b 2607:f8b0:4023:0c06:0000:0000:0000:001a 2607:f8b0:4023:1c05:0000:0000:0000:001a 2607:f8b0:4023:1c05:0000:0000:0000:001b 2607:f8b0:4023:2009:0000:0000:0000:001a 2607:f8b0:4023:2009:0000:0000:0000:001b 2a01:0111:f403:c803:0000:0000:0000:0000 2a01:0111:f403:c902:0000:0000:0000:0002 2a01:0111:f403:c946:0000:0000:0000:0004 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:f913:0000:0000:0000:0001 36.51.254.76 43.154.252.16 43.154.252.202 45.82.252.186 47.236.30.192 47.242.69.79 47.246.136.231 47.246.137.47 47.246.173.111 52.101.10.1 52.101.11.17 52.101.11.19 52.101.124.117 52.101.137.0 52.101.157.80 52.101.40.1 64.233.187.26 64.233.188.26 64.233.188.27 64.233.189.26 64.233.189.27 66.35.35.26 66.35.35.28 74.125.203.26 8.219.195.62 90.156.132.120 94.74.105.158 # 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