We have updated SpamAssassin packages available for CentOS/Cloudlinux 7/8 servers. The repository was created for users who want to run the very latest SpamAssassin with Warden Anti-Spam and Virus Protection instead of the legacy SpamAssassin packages from their OS. If you are using CentOS/Cloudlinux 7/8 and would like this setup follow the directions below or open a support ticket in our client area and a technician can upgrade your SpamAssassin packages for you.
Specify which locales are considered OK for incoming mail. Mail using the character sets that are allowed by this option will not be marked as possibly being spam in a foreign language. If you receive lots of spam in foreign languages, and never get any non-spam in these languages, this may help.
Warden -> Settings -> Anti-spam Settings.
Warden -> Settings -> Network Settings.
Warden -> Plugin Settingsand make sure that the TextCat plugin is enabled.
Warden -> Plugin Settings -> TextCat.
Warden -> Plugin Settingsand make sure that the RelayCountry plugin is enabled.
Warden -> Plugin Settings -> RelayCountry.
Warden -> Plugin Settingsand make sure that the URILocalBL plugin is enabled.
Warden -> Plugin Settings -> URILocalBL.
If your clients get image based spam then it is recommended to enable the TesseractOcr plugin.
Warden -> Plugin Settingsand make sure that the TesseractOcr plugin is enabled.
DCC is not installed by default because it is not open source but is still highly recommended. We recommend that you install and setup DCC so that you can use it:
Warden can use the
X-PHP-Originating-Script header to track all PHP based mail. Edit the PHP.ini for each version of PHP installed on the server and set
mail.add_x_header = On
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename mail.add_x_header = On
Restart the PHP 7.0 FPM handler:
service plesk-php70-fpm.service restart
If you are using an external firewall then you will have to open ports on your firewall for the network tests:
If this is the first time running SpamAssassin and you want to enable spam filtering for all mailboxes on the server then run the following command:
for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select concat(mail.mail_name,\"@\",domains.name) as address from mail,domains,accounts where mail.dom_id=domains.id and mail.account_id=accounts.id order by address"`; do /usr/local/psa/bin/spamassassin -u $i -status true ; done