Emails are not delivered: "spamc" process hangs.

Created:

2017-01-11 04:44:26 UTC

Modified:

2017-08-08 13:41:04 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Emails are not delivered: "spamc" process hangs.

Applicable to:

  • Plesk for Linux

Issue Symptoms

  • Email messages are not delivered to mailboxes with enabled Spam-filter.
  • Spamassassin service is running.
  • These messages stuck in the mail queue.
  • The /usr/bin/spamc process is stuck:

    # ps aux | grep spam
    
    popuser 1 0.0 0.0 35520 1792 ? S 06:42 0:00 /usr/bin/spamc -s 256000 -u john.doe@example.com -E
  • There are several net interfaces with 127.0.0.1 IP address.

    # ifconfig |grep -C 1 127
    
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    --
    venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255

Conditions

The spamc process cannot determine which interface is needed to use.

Resolution

Reconfigure network interfaces: only lo interface should use 127.0.0.1 IP address.

OR

Reassign Spamassassin to one of the real IP addresses:

    1. for spamd: modify /etc/sysconfig/spamassassin as follows:

      # cat /etc/sysconfig/spamassassin
      # Options to spamd
      SPAMDOPTIONS="-i 192.0.2.2 -A 192.0.2.2 --nouser-config --username=popuser --daemonize --helper-home-dir=/var/qmail --virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin --create-prefs --max-children=5 "
      
    2. for spamc: modify /etc/mail/spamassassin/spamc.conf as follows:

      # cat /etc/mail/spamassassin/spamc.conf
      -d 192.0.2.2
Have more questions? Submit a request
Please sign in to leave a comment.