Symptoms
-
sa-compile
package on a Plesk server with Plesk Email Security fails to update:sa-compile:not compiling ; 'spamassassin --lint' check failed! dpkg: error processing package sa-compile (--configure)
-
The following errors are found in
/var/log/plesk/install/autoinstaller3.log
:Setting up sa-compile (3.4.2-1~deb9u3) ...
Running sa-compile (may take a long time)
Mar 25 16:25:26.226 [14869] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": use_auto_whitelist 1
Mar 25 16:25:26.226 [14869] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": auto_whitelist_factory Mail::SpamAssassin::SQLBasedAddrList
Mar 25 16:25:26.227 [14869] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": user_awl_dsn DBI:mysql:emailsecurity:localhost
Mar 25 16:25:26.227 [14869] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": user_awl_sql_username ************
Mar 25 16:25:26.227 [14869] info: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": user_awl_sql_password ******************** -
The following messages are received from cron each hour:
run-parts: /etc/cron.hourly/imunify360-php-i360-rules exited with return code 100
Cause
SpamAssassin plugin required by Plesk Email Security is disabled by default. This issue is registered as a bug with ID EXTCERT-3364 and will be addresses in one of the future updates.
Resolution
Until the bug is fixed, enable the plugin manually using the following steps:
-
Connect to the server via SSH.
-
Enable the plugin:
# sed -i.BAK ‘/Plugin::AWL/s/^#//g’ /etc/spamassassin/v310.pre
-
Restart spamassassin:
# service spamassassin restart
-
Reconfigure spamassassin:
# spamassassin –lint
-
Update packages:
# apt update && apt upgrade