Spamassasin cannot be started

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:49:27 UTC

Modified:

2016-12-21 19:18:17 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Spamassasin cannot be started

Symptoms

Trying to start the service spamassassin failed with the following error:

Error: Unable to make action: Unable to manage service by spammng: Job for spamassassin.service failed. See 'systemctl status spamassassin.service' and 'journalctl -xn' for details.
ERROR:spammng:Unable to start SpamAssassin service ('--start', 'spamassassin')

In the /var/log/messages we can see the following:

spamd: server socket setup failed, retry 7: spamd: could not create IO::Socket::IP socket on [127.0.0.1]:783: Address already in use

Cause

This is a spamassassin software issue 6953

Resolution

  1. Stop spamassassin service.

    service spamassassin stop
  2. Open for editing spamassassin config file:

    vi /etc/sysconfig/spamassassin
  3. Add to end of SPAMDOPTIONS the following option "-i ::"The resulting line should be look like:

    SPAMDOPTIONS="--nouser-config --username=popuser --daemonize --helper-home-dir=/var/qmail --virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin --create-prefs --max-children=5 -i ::"
  4. Save the spamassassin config file.

  5. Start the spamassassin.
    service spamassassin start

Note: If change any setting under Tools & Settings > Spam Filter page it will overwrite spamassassin modification and remove -i :: option. Such behavior considered to be software issue PPPM-4084 and will be fixed in future Plesk updates.

Custom fix for Ubuntu 14.04.3 LTS with Plesk 12.5 in attachment . Replace spammng.py from attachment with /usr/local/psa/lib/modules/python/spammng/spammng.py

Have more questions? Submit a request
Please sign in to leave a comment.