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 10.0.0.0/8 100.20.51.185 102.130.123.40 102.209.117.236 103.103.196.235 103.138.189.172 103.138.189.205 103.189.88.162 103.20.215.58 103.21.59.182 103.224.212.34 103.224.246.193 103.233.58.13 103.233.58.171 104.21.82.94 104.47.76.100 104.47.76.164 107.161.177.42 108.177.125.26 108.177.125.27 110.34.3.165 115.187.19.24 119.18.49.33 119.252.155.15 121.240.21.2 124.41.240.162 13.216.54.185 135.125.171.180 135.125.222.87 142.171.228.66 142.250.101.26 145.79.4.80 147.182.130.78 147.182.160.18 147.182.180.139 147.182.189.184 148.113.35.66 148.163.126.69 148.163.129.50 148.163.129.51 15.222.160.229 151.158.159.100 157.173.117.207 157.173.219.102 158.220.107.24 16.52.110.174 16.52.61.209 161.129.67.102 161.35.84.83 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.214.80.21 162.215.2.27 162.215.248.185 162.215.253.15 162.215.254.72 162.215.3.25 162.215.3.26 162.241.123.50 162.241.123.75 162.255.118.13 162.255.118.28 162.255.118.29 162.255.118.51 162.255.118.52 162.255.118.7 162.255.118.8 164.90.197.105 164.90.197.143 164.90.197.162 164.90.197.79 166.88.19.105 166.88.19.107 166.88.19.108 167.172.76.0 167.233.110.52 169.148.146.168 169.148.149.118 172.104.235.210 172.217.78.26 172.217.78.27 172.253.158.26 172.253.158.27 172.65.182.103 172.67.199.224 173.194.43.26 173.194.43.27 175.158.75.72 175.158.75.73 176.9.80.28 178.162.253.243 178.63.40.172 18.224.101.244 182.65.36.223 182.93.80.120 182.93.93.93 184.168.106.142 184.168.116.155 184.168.119.169 185.124.110.113 185.151.28.67 185.158.133.1 185.230.63.107 185.230.63.171 185.230.63.186 188.241.62.2 188.40.169.205 190.92.174.0/24 190.92.174.125 190.92.174.244 190.92.174.29 190.92.174.30 192.178.211.26 192.178.211.27 192.178.230.26 192.178.230.27 192.185.114.122 192.185.194.27 192.250.229.176 192.250.232.13 192.250.234.167 192.250.235.218 192.250.235.77 192.250.239.94 196.223.164.242 198.49.66.162 199.231.166.82 20.244.94.24 2001:0df3:8880:0033:0000:0000:0000:00aa 2001:41d0:0303:648a:0000:0000:0000:0001 2001:41d0:0700:19b4:0000:0000:0000:0001 2001:41d0:0700:1a57:0000:0000:0000:0001 202.162.229.37 202.162.240.51 202.162.240.52 202.45.146.101 202.45.146.102 202.51.74.91 202.88.241.248 202.88.241.251 203.175.74.227 203.26.189.11 203.26.189.12 204.11.58.233 204.141.33.44 204.141.43.44 208.74.120.0/21 213.155.1.132 216.10.252.31 216.239.133.242 23.111.182.98 23.227.38.65 2404:6800:4000:1025:0000:0000:0000:001a 2404:6800:4000:1025:0000:0000:0000:001b 2404:6800:4003:0c0f:0000:0000:0000:001a 2404:6800:4003:0c26:0000:0000:0000:001a 2404:6800:4003:0c26:0000:0000:0000:001b 2404:6800:4008:0c01:0000:0000:0000:001a 2404:6800:4008:0c01:0000:0000:0000:001b 2404:6800:400b:c01b:0000:0000:0000:001a 2404:6800:400b:c01b:0000:0000:0000:001b 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 2606:4700:3031:0000:0000:0000:ac43:c7e0 2606:4700:3035:0000:0000:0000:6815:525e 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:fe90:0001:0001:0000:0000:0000:001c 2620:0127:f00f:0005:0000:0000:0000:0000 2a01:0111:f403:7129:0000:0000:0000:0038 2a01:0111:f403:7130:0000:0000:0000:0038 2a01:0111:f403:ca04:0000:0000:0000:0002 2a01:0111:f403:ca04:0000:0000:0000:0006 2a01:0111:f403:ca04:0000:0000:0000:000a 2a01:0111:f403:ca04:0000:0000:0000:000b 2a01:0111:f403:ca04:0000:0000:0000:000c 2a01:0111:f403:ca04:0000:0000:0000:0010 2a01:0111:f403:ca09:0000:0000:0000:0002 2a01:0111:f403:ca09:0000:0000:0000:0006 2a01:0111:f403:ca09:0000:0000:0000:0007 2a01:0111:f403:ca09:0000:0000:0000:0008 2a01:0111:f403:ca09:0000:0000:0000:0009 2a01:0111:f403:ca09:0000:0000:0000:000d 2a01:0111:f403:ca0b:0000:0000:0000:0000 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: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:ca34:0000:0000:0000:0000 2a01:0111:f403:ca34:0000:0000:0000:0001 2a01:0111:f403:ca34:0000:0000:0000:0002 2a01:0111:f403:ca36:0000:0000:0000:0000 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: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: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:0001 2a01:7e01:0000:0000:f03c:93ff:fe5e:9f9f 2a02:4780:0012:ea95:0000:0000:0000:0001 3.136.245.72 3.17.120.38 31.58.209.196 31.59.185.46 34.111.121.216 34.111.130.244 34.120.156.61 34.13.213.173 34.149.254.5 34.149.79.66 34.198.67.24 34.36.182.139 35.244.28.240 38.143.66.193 38.242.195.33 44.216.124.122 44.239.226.101 44.245.249.202 45.199.139.15 45.43.208.31 45.79.126.53 45.80.181.27 45.93.136.20 5.161.133.13 51.38.57.138 52.101.124.117 52.101.137.0 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.149.0 52.101.149.1 52.101.149.2 52.101.149.9 52.101.151.0 52.101.157.80 52.101.160.0 52.101.160.1 52.101.162.0 52.101.162.1 52.101.177.0 52.101.177.1 52.101.177.2 52.101.179.0 52.101.68.10 52.101.68.15 52.101.68.36 52.101.68.5 52.101.68.8 52.101.73.11 52.101.73.15 52.101.73.153 52.101.73.16 52.101.73.19 52.101.73.22 52.101.73.30 52.101.73.6 52.101.73.8 52.101.89.0 52.101.89.1 52.101.89.2 52.101.99.2 52.25.213.239 52.37.49.26 52.66.22.176 54.36.168.145 62.84.187.75 65.2.92.210 65.21.215.19 65.98.127.43 67.195.204.83 67.195.228.75 67.231.154.162 67.231.154.163 69.57.172.0/24 69.57.172.117 69.57.172.153 69.57.172.154 69.57.172.2 69.72.248.125 72.29.91.172 72.60.18.145 72.60.202.200 74.125.200.27 78.159.156.45 84.16.249.171 85.187.128.44 89.116.133.92 92.204.80.19 92.204.80.20 95.217.125.217 95.217.148.99 # 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
# BEGIN ANSIBLE MANAGED BLOCK - Abusix
ifplugin Mail::SpamAssassin::Plugin::DNSEval
header __RCVD_IN_AMI eval:check_rbl('ami', 'b4748383a2e8302a1604b905270505cd.combined.mail.abusix.zone.')
describe __RCVD_IN_AMI Received via a relay in Guardian Mail
tflags __RCVD_IN_AMI net
header RCVD_IN_AMI_BLACK eval:check_rbl_sub('ami', '^127\.0\.0\.(?:[23]|200)$')
describe RCVD_IN_AMI_BLACK Received via a relay in Guardian Mail Black
score RCVD_IN_AMI_BLACK 3.0
tflags RCVD_IN_AMI_BLACK net
header RCVD_IN_AMI_EXPLOIT eval:check_rbl_sub('ami', '127.0.0.4')
describe RCVD_IN_AMI_EXPLOIT Received via a relay in Guardian Mail Exploit
score RCVD_IN_AMI_EXPLOIT 3.0
tflags RCVD_IN_AMI_EXPLOIT net
header RCVD_IN_AMI_DYN eval:check_rbl('ami-lastexternal', 'b4748383a2e8302a1604b905270505cd.combined.mail.abusix.zone.', '^127\.0\.0\.1[12]$')
describe RCVD_IN_AMI_DYN Received via a relay in Guardian Mail Dynamic
score RCVD_IN_AMI_DYN 3.0
tflags RCVD_IN_AMI_DYN net
header RCVD_IN_AMI_WHITE eval:check_rbl('ami-firsttrusted', 'b4748383a2e8302a1604b905270505cd.combined.mail.abusix.zone.', '127.0.2.1')
describe RCVD_IN_AMI_WHITE Received via a relay in Guardian Mail White
score RCVD_IN_AMI_WHITE -0.1
tflags RCVD_IN_AMI_WHITE nice net
endif
ifplugin Mail::SpamAssassin::Plugin::URIDNSBL
urirhsbl URIBL_AMI_DBLACK b4748383a2e8302a1604b905270505cd.dblack.mail.abusix.zone. A
body URIBL_AMI_DBLACK eval:check_uridnsbl('URIBL_AMI_DBLACK')
describe URIBL_AMI_DBLACK Contains a spam URL listed in the Guardian Mail domain blocklist
score URIBL_AMI_DBLACK 3.0
tflags URIBL_AMI_DBLACK net
urirhssub URIBL_AMI_WHITE b4748383a2e8302a1604b905270505cd.white.mail.abusix.zone. A 127.0.2.1
body URIBL_AMI_WHITE eval:check_uridnsbl('URIBL_AMI_WHITE')
describe URIBL_AMI_WHITE Contains a domain listed in the Guardian Mail domain whitelist
score URIBL_AMI_WHITE -0.1
tflags URIBL_AMI_WHITE nice net
endif
# END ANSIBLE MANAGED BLOCK - Abusix