Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

spamd is failing

Discussion in 'General Discussion' started by rangka_kacang, Jan 31, 2018.

Tags:
  1. rangka_kacang

    rangka_kacang Active Member

    Joined:
    Jan 31, 2018
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Malaysia
    cPanel Access Level:
    Root Administrator
    Code:
    [root@******** ~]# rpm -qa | grep -i spam
    [root@******** ~]# cpanel-perl-526-Mail-SpamAssassin-3.004001-5.cp1170.x86_64
    
    [root@******** ~]# /scripts/restartsrv_spamd
    Waiting for “spamd” to start ………Waiting for spamd,spamd -d to shutdown ... not running.
    info [restartsrv_spamd] The service 'spamd' failed to restart. Trying '/usr/local/cpanel/3rdparty/perl/526/bin/spamd'.…failed.
    
    Jan 31 21:02:21 ******** systemd[1]: Starting Apache SpamAssassin™ deferral daemon...
    Jan 31 21:02:22 ******** spamd[13025]: config: no rules were found! Do you need to run 'sa-update'?
    Jan 31 21:02:31 ******** systemd[1]: PID file /var/run/spamd .pid not readable (yet?) after start.
    Jan 31 21:02:31 ******** systemd[1]: Failed to start Apache SpamAssassin™ deferral daemon.
    Jan 31 21:02:31 ******** systemd[1]: Unit spamd.service entered failed state.
    Jan 31 20:59:52 ******** spamd[12850]: config: no rules were found! Do you need to run 'sa-update'?
     
    #1 rangka_kacang, Jan 31, 2018
    Last edited: Jan 31, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,715
    Likes Received:
    1,705
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    This relates to the following SpamAssassin bug:

    7540 – r1822466 fails lint check (FORGED_GMAIL_RCVD)

    Once it's published, the SpamAssassin resolution for the above bug should take affect through the /usr/local/cpanel/3rdparty/bin/sa-update script that runs automatically. In the meantime, you can use the following commands as a temporary workaround:

    Code:
    mkdir /root/saupdate
    cd /root/saupdate/
    wget http://sa-update.bitwell.fi/1822256.tar.gz{,.sha1,.asc}
    /usr/local/cpanel/3rdparty/bin/sa-update -v --install /root/saupdate/1822256.tar.gz
    /scripts/restartsrv_spamd
    Thank you.
     
    rangka_kacang likes this.
  3. rangka_kacang

    rangka_kacang Active Member

    Joined:
    Jan 31, 2018
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Malaysia
    cPanel Access Level:
    Root Administrator
    Thank you for the fix! spamd is now showing as "up" in my WHM's service status page. Should I known this earlier, I would've registered on the forum sooner instead of spending countless hours troubleshooting.

    Btw, what do you think of my configuration?

    Code:
    spamd (spamd-dormant: waiting for connections [5,6] --max-children=5 --max-conn-per-child=200 --max-spare=1 --pidfile=/var/run/spamd.pid --timeout-child=300 --timeout-tcp=30 --allowed-ips=127.0.0.1,::1 --listen=5,6) is running as root with PID 18726 (systemd+/proc check method).
    
    Feb 01 11:36:46 *** spamd[18726]: rules: meta test KAM_BBB has dependency 'KAM_RAPTOR' with a zero score
    Feb  1 11:36:48 *** spamd[18726]: prefork: killed child 18731
    Feb  1 11:36:48 *** spamd[18726]: prefork: killing failed child 18731 fd=7 at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Mail/SpamAssassin/SpamdForkScaling.pm line 172.
    Feb  1 11:36:46 *** spamd[18726]: prefork: child states: I
    Feb  1 11:36:46 *** spamd[18726]: spamd: server successfully spawned child process, pid 18731
    Feb  1 11:36:46 *** spamd[18726]: spamd: server pid: 18726
    
    spamd restarted successfully.
    
    I rest my case.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,715
    Likes Received:
    1,705
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I see no issues with your SpamAssassin configuration as long as it's working well with your server's resource usage.

    Thank you.
     
  5. rangka_kacang

    rangka_kacang Active Member

    Joined:
    Jan 31, 2018
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Malaysia
    cPanel Access Level:
    Root Administrator
    Hello, spamd has failed on my other cpanel-dnsonly boxes today.

    Code:
    rpm -qa | grep -i spam
    cpanel-perl-524-Mail-SpamAssassin-3.004001-8.cp1162.x86_64
    I tried applying the same commands but unable to get it to work maybe because it's 62 not 70.

    Code:
    /scripts/restartsrv_spamd
    Waiting for “spamd” to start ……warn [restartsrv_spamd] The 'spamd' service's PID file '/var/run/spamd.pid' did not appear after 10 seconds.
    
    …Waiting for spamd,spamd -d to shutdown ... not running.
    info [restartsrv_spamd] The service 'spamd' failed to restart. Trying '/usr/local/cpanel/3rdparty/perl/524/bin/spamd'.
    
    Code:
    cat /var/log/chkservd.log
     Service check ....
    queueprocd [[check command:+][socket connect:N/A]]...
    sshd [[check command:N/A][socket connect:N/A]]...
    spamd [[check command:-][check command output:Raw Output: The subprocess reported error number 69 when it ended.
    (XID utqm9r) The service “spamd” failed to send the expected response to host “127.0.0.1” and port “783” because of an error: The service did not pass the built-in GTUBE test.
    
    The subprocess “/usr/local/cpanel/scripts/restartsrv_spamd” reported error number 69 when it ended.][socket connect:N/A][fail count:311]Restarting spamd....
    [notify:failed service:spamd]]...
    
    Can you give me the correct download link?
     
    #5 rangka_kacang, Feb 5, 2018
    Last edited: Feb 5, 2018
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,715
    Likes Received:
    1,705
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @rangka_kacang,

    Do you notice any error messages when running the "/usr/local/cpanel/3rdparty/bin/sa-update" command on that server?

    Thank you.
     
Loading...

Share This Page