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 10.0.0.0/8 103.11.147.124 103.112.62.155 103.191.50.5 103.224.212.34 103.243.175.186 104.234.134.21 104.247.109.67 108.177.98.27 118.103.150.95 118.179.144.218 131.153.0.0/17 131.153.128.0/18 131.153.192.0/19 131.153.224.0/20 131.153.233.53 131.153.240.0/21 142.251.188.26 142.251.188.27 151.158.48.41 151.158.48.76 160.30.208.10 162.159.143.30 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.215.2.27 162.215.3.25 162.215.3.26 162.244.94.10 162.255.118.13 162.255.118.28 162.255.118.29 162.255.118.51 162.255.118.52 164.90.194.37 165.140.85.130 166.0.175.226 172.217.216.27 172.253.117.26 172.253.117.27 172.253.135.27 172.253.145.26 172.253.145.27 172.65.182.103 172.66.3.26 173.194.43.26 173.194.43.27 182.48.85.133 185.151.28.67 192.110.160.67 192.178.163.26 192.178.231.26 192.179.26.26 192.179.26.27 192.254.236.171 198.23.142.74 202.4.96.23 202.4.96.35 202.71.180.82 203.76.105.182 203.76.96.10 204.197.172.26 208.74.120.0/21 209.42.27.127 23.172.136.2 23.172.139.3 23.29.115.2 2400:ca00:0100:0210:0000:0000:0000:0100 2400:ca00:0101:0200:0000:0000:0000:0100 2602:faa9:00e1:6e6f:7370:616d:0000:0002 2602:faa9:00e2:6e6f:7370:616d:0000:0002 2602:faa9:00e3:6e6f:7370:616d:0000:0002 2602:fc06:0003:0066:0000:0000:0000:c0de 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 2607:f8b0:400e:0c00:0000:0000:0000:001b 2607:f8b0:400e:0c02:0000:0000:0000:001a 2607:f8b0:400e:0c02:0000:0000:0000:001b 2607:f8b0:400e:0c07:0000:0000:0000:001a 2607:f8b0:400e:0c07:0000:0000:0000:001b 2607:f8b0:400e:0c0a:0000:0000:0000:001a 2607:f8b0:400e:0c0a:0000:0000:0000:001b 2607:f8b0:400e:0c1b:0000:0000:0000:001a 2607:f8b0:400e:0c1b:0000:0000:0000:001b 2607:f8b0:400e:0c1e:0000:0000:0000:001a 2607:f8b0:400e:0c1e:0000:0000:0000:001b 2607:f8b0:400e:0c20:0000:0000:0000:001a 2607:f8b0:400e:0c20:0000:0000:0000:001b 2607:f8b0:4023:0c03:0000:0000:0000:001a 2607:f8b0:4023:1015:0000:0000:0000:001b 2607:f8b0:4023:200d:0000:0000:0000:001a 2607:f8b0:4023:2803:0000:0000:0000:001a 2607:f8b0:4023:2803:0000:0000:0000:001b 2607:f8b0:4023:3003:0000:0000:0000:001b 2a01:0111:f403:cc09:0000:0000:0000:0000 2a01:0111:f403:cc1a:0000:0000:0000:0008 2a01:0111:f403:cc1f:0000:0000:0000:0004 38.101.149.233 5.77.41.182 52.101.124.117 52.101.137.0 52.101.157.80 65.109.161.215 66.154.101.117 74.125.137.27 74.125.142.26 74.125.199.26 74.125.199.27 74.125.20.26 74.125.20.27 78.46.96.118 # 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