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 104.155.125.45 104.21.112.1 104.21.16.1 104.21.32.1 104.21.48.1 104.21.6.179 104.21.64.1 104.21.80.1 104.21.96.1 104.247.167.147 104.247.179.179 108.167.143.241 108.177.125.26 108.177.125.27 136.243.248.17 141.98.115.242 142.250.101.27 142.250.4.27 142.251.9.27 147.182.130.78 147.182.160.18 147.182.180.139 147.182.189.184 162.255.118.51 162.255.118.52 164.90.197.105 164.90.197.143 164.90.197.162 164.90.197.79 172.65.182.103 172.67.135.23 173.194.222.27 176.119.200.128 176.119.200.129 185.115.43.252 185.165.46.2 185.205.70.128 185.205.70.129 185.210.94.73 185.50.71.75 185.70.42.128 185.70.42.129 192.178.163.27 193.124.124.0/24 193.38.34.5 208.74.120.0/21 209.74.87.59 212.64.199.107 212.64.199.165 217.28.139.100 2404:6800:4003:0c06:0000:0000:0000:001a 2404:6800:4003:0c06:0000:0000:0000:001b 2404:6800:4008:0c01:0000:0000:0000:001b 2606:4700:0090:0000:c1f8:f874:2386:b61f 2606:4700:3030:0000:0000:0000:6815:1001 2606:4700:3030:0000:0000:0000:6815:2001 2606:4700:3030:0000:0000:0000:6815:3001 2606:4700:3030:0000:0000:0000:6815:4001 2606:4700:3030:0000:0000:0000:6815:5001 2606:4700:3030:0000:0000:0000:6815:6001 2606:4700:3030:0000:0000:0000:6815:7001 2607:f8b0:400e:0c17:0000:0000:0000:001b 2607:f8b0:4023:0c06:0000:0000:0000:001b 2a00:1450:4010:0c05:0000:0000:0000:001a 2a00:1450:4025:0c03:0000:0000:0000:001a 2a01:0111:f403:ca04:0000:0000:0000:000a 2a01:0111:f403:ca04:0000:0000:0000:000c 2a01:0111:f403:ca04:0000:0000:0000:000d 2a01:0111:f403:ca04:0000:0000:0000:0010 2a01:0111:f403:ca09:0000:0000:0000:0004 2a01:0111:f403:ca09:0000:0000:0000:0008 2a01:0111:f403:ca09:0000:0000:0000:000c 2a02:06b8:0000:0000:0000:0000:0000:0311 2a06:41c0:0001:0006:0000:0000:0000:0348 45.139.198.231 45.158.14.18 45.84.189.227 52.101.68.12 52.101.68.16 52.101.68.18 52.101.73.1 52.101.73.11 52.101.73.22 52.101.73.28 52.101.73.6 62.146.106.39 62.146.106.40 77.88.21.249 78.135.106.243 80.253.246.193 84.247.20.15 87.248.157.245 89.252.182.2 89.45.44.45 92.204.80.0 92.204.80.3 94.199.206.169 94.73.187.201 94.73.187.202 # 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-whitelisted mails are *really* whitelisted 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_WHITELIST on # shortcircuit USER_IN_DEF_WHITELIST on # shortcircuit USER_IN_ALL_SPAM_TO on # shortcircuit SUBJECT_IN_WHITELIST on # the opposite; blacklisted mails can also save CPU # # shortcircuit USER_IN_BLACKLIST on # shortcircuit USER_IN_BLACKLIST_TO on # shortcircuit SUBJECT_IN_BLACKLIST 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