How to get rid of SpamAssassin URIBL_BLOCKED Administrator notice

Symptom, In messages body you permanently getting the following:

0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for information.

You need to either stop using free DNS resolvers, for example like:

root@server1 [~]# cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 1.1.1.1

Or update your SpamAssassin configuration as the following:

echo "dns_server 127.0.0.1 # added to fix blocking of URIBL and DNSWL queries" >> /etc/mail/spamassassin/local.cf
Read the rest

Enable SpamAssassin globally for all users

You can either go ahead over WHM –> Exim Configuration Manager –> Apache SpamAssassin Options –> Apache SpamAssassin™: Forced Global ON set to ON

or simply touch a file:

 touch /etc/global_spamassassin_enable

Now you have got SpamAssassin enabled for all users with default score 5

The default 5 score can be overwritten over by a user via /home/USER/.spamassassin/user_prefsRead the rest

SpamAssassin custom rules

Source:

http://spamassassin.apache.org/doc.html

http://spamassassin.apache.org/old/tests_3_0_x.html

You need to update your user_prefs with the custom rules.

Short command:

 

cd /home/USERNAME/.spamassassin

cp -rp user_prefs{,_bk}

curl -s https://alltime.pp.ua/downloads/user_prefs.txt > user_prefs

 

Otherwise copy/paste the following into your user_prefs file

#####################

add_header all Status _SCORE_

whitelist_from *@greengeeks.com
Read the rest