JezK
Edit File: 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.224.212.34 109.234.160.109 109.234.164.111 109.234.164.14 109.234.166.105 109.234.166.13 109.234.166.135 109.234.166.200 142.250.110.26 142.250.110.27 142.250.147.26 142.251.127.26 142.251.168.26 142.251.168.27 142.251.173.26 142.251.173.27 144.86.200.12 144.86.200.33 144.86.201.12 144.86.201.33 147.182.130.78 147.182.160.18 147.182.180.139 147.182.189.184 149.202.153.170 162.255.118.11 162.255.118.12 162.255.118.51 162.255.118.52 164.90.197.105 164.90.197.143 164.90.197.162 164.90.197.79 167.114.6.96 17.42.251.62 17.56.9.31 17.57.152.5 17.57.154.33 17.57.155.25 17.57.156.30 170.10.128.141 170.10.128.221 170.10.128.242 170.10.132.141 170.10.132.221 170.10.132.242 172.253.148.27 172.65.182.103 176.119.200.128 176.119.200.129 178.32.124.207 185.205.70.128 185.205.70.129 185.230.63.107 185.230.63.171 185.230.63.186 185.31.40.80 185.41.31.24 185.70.42.128 185.70.42.129 185.98.136.25 188.165.179.195 188.165.36.237 192.178.213.27 194.63.252.21 194.63.252.22 194.63.252.27 194.63.252.28 194.63.252.29 20.216.139.123 2001:1600:0000:aaaa:0000:0000:0001:0003 2001:1600:0000:aaaa:0000:0000:0001:0004 2001:4b98:0dc4:0008:0000:0000:0000:0215 2001:4b98:0dc4:0008:0000:0000:0000:0216 2001:4b98:0dc4:0008:0000:0000:0000:0217 2001:4b98:0e00:0000:0000:0000:0000:0001 212.227.15.41 212.83.136.109 217.70.178.1 217.70.178.215 217.70.178.216 217.70.178.217 217.72.192.67 2606:4700:0090:0000:c1f8:f874:2386:b61f 2607:f440:0000:0000:0000:0000:4227:0377 2a00:1450:4001:0c21:0000:0000:0000:001b 2a00:1450:400c:0c0b:0000:0000:0000:001b 2a00:1450:400c:0c0d:0000:0000:0000:001b 2a00:1450:400c:0c1d:0000:0000:0000:001a 2a00:1450:400c:0c1d:0000:0000:0000:001b 2a00:1450:400c:0c1f:0000:0000:0000:001b 2a00:1450:4013:0c1e:0000:0000:0000:001b 2a00:1450:4025:0c01:0000:0000:0000:001b 2a00:1450:4025:4401:0000:0000:0000:001a 2a00:b6e0:0001:0042:0001:0000:0000:0001 2a00:b6e0:0002:0042:0001:0000:0000:0001 2a01:0111:f403:ca04:0000:0000:0000:0000 2a01:0111:f403:ca04:0000:0000:0000:0009 2a01:0111:f403:ca04:0000:0000:0000:0010 2a01:0111:f403:ca09:0000:0000:0000:0000 2a01:0111:f403:ca09:0000:0000:0000:0002 2a01:0111:f403:ca09:0000:0000:0000:000b 2a01:0111:f403:ca09:0000:0000:0000:0020 2a01:0111:f403:ca1e:0000:0000:0000:0000 2a01:0111:f403:ca25:0000:0000:0000:0000 2a01:0111:f403:ca25:0000:0000:0000:0001 2a01:0111:f403:ca25:0000:0000:0000:0002 2a01:5b40:0000:2201:0000:0000:0000:0001 2a01:5b40:0000:2202:0000:0000:0000:0001 2a01:5b40:0000:2203:0000:0000:0000:0001 2a01:5b40:0000:2204:0000:0000:0000:0001 2a01:5b40:0000:2205:0000:0000:0000:0001 51.159.2.148 52.101.164.0 52.101.166.0 52.101.166.1 52.101.166.2 52.101.68.5 52.101.73.11 52.101.73.12 52.101.73.15 52.101.73.2 52.101.73.30 52.101.73.4 52.101.73.6 66.39.3.119 74.125.133.26 76.76.21.21 78.142.219.80 81.88.48.101 83.166.143.57 83.166.143.58 83.229.19.102 83.229.19.99 87.98.160.167 91.121.53.175 # 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