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 not starting

Discussion in 'E-mail Discussions' started by Kent Brockman, Aug 1, 2011.

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello people.
    Since 2 days I'm receiving these mails about spamd not working.

    Code:
    spamd failed @ Mon Aug  1 09:25:17 2011. A restart was attempted automagically.
    
    Service Check Method:  [check command] 
    
    Number of Restart Attempts: 112
    
    Cmd Service Check Raw Output: Spamd is not running
    Raw Output: Subject: Test spam mail (GTUBE)
    Message-ID: <GTUBE1.1010101@example.net>
    Date: Wed, 23 Jul 2003 23:30:00 +0200
    From: Sender <sender@example.net>
    To: Recipient <recipient@example.net>
    Precedence: junk
    MIME-Version: 1.0
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    
    This is the GTUBE, the
            Generic
            Test for
            Unsolicited
            Bulk
            Email
    
    If your spam filter supports it, the GTUBE provides a test by which you
    can verify that the filter is installed correctly and is detecting incoming
    spam. You can send yourself a test mail containing the following string of
    characters (in upper case and with no white spaces and line breaks):
    
    XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
    
    You should send this test mail from an account outside of your network.
    
    I've noticed the next command is executing and not terminating everytime the system tries to restart spamd:

    Code:
    /usr/libexec/gcc/i386-redhat-linux/3.4.6/cc1 -quiet -I/usr/local/include -I/usr/include/gdbm -I/usr/local/lib/perl5/5.8.8/i686-linux/CORE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION="1.0" -DXS_VERSION="1.0" scanner2.c -quiet -dumpbase scanner2.c -auxbase scanner2 -O2 -Wdeclaration-after-statement -fno-strict-aliasing -fpic -o -
    
    Whenever I try to restart the spamd service I got the following:

    Code:
    root@servidor [~]# service exim restart
    Shutting down exim:                                        [  OK  ]
    Shutting down spamd:                                       [FAILED]
    Starting exim:                                             [  OK  ]
    spamassassin rule update has not yet run.
    Running sa-update (/usr/bin/sa-update).....[21966] dbg: logger: adding facilities: all
    [21966] dbg: logger: logging level is DBG
    [21966] dbg: generic: SpamAssassin version 3.2.4
    [21966] dbg: config: score set 0 chosen.
    [21966] dbg: dns: is Net::DNS::Resolver available? yes
    [21966] dbg: dns: Net::DNS version: 0.66
    [21966] dbg: generic: sa-update version svn607589
    [21966] dbg: generic: using update directory: /var/lib/spamassassin/3.002004
    [21966] dbg: diag: perl platform: 5.008008 linux
    [21966] dbg: diag: module installed: Digest::SHA1, version 2.13
    [21966] dbg: diag: module installed: HTML::Parser, version 3.68
    [21966] dbg: diag: module installed: Net::DNS, version 0.66
    [21966] dbg: diag: module installed: MIME::Base64, version 3.13
    [21966] dbg: diag: module installed: DB_File, version 1.822
    [21966] dbg: diag: module installed: Net::SMTP, version 2.31
    [21966] dbg: diag: module installed: Mail::SPF, version v2.006
    [21966] dbg: diag: module installed: Mail::SPF::Query, version 1.999001
    [21966] dbg: diag: module installed: IP::Country::Fast, version 604.001
    [21966] dbg: diag: module not installed: Razor2::Client::Agent ('require' failed)
    [21966] dbg: diag: module not installed: Net::Ident ('require' failed)
    [21966] dbg: diag: module installed: IO::Socket::INET6, version 2.56
    [21966] dbg: diag: module installed: IO::Socket::SSL, version 1.24
    [21966] dbg: diag: module installed: Compress::Zlib, version 2.017
    [21966] dbg: diag: module installed: Time::HiRes, version 1.9724
    [21966] dbg: diag: module installed: Mail::DomainKeys, version 1.0
    [21966] dbg: diag: module installed: Mail::DKIM, version 0.36
    [21966] dbg: diag: module installed: DBI, version 1.616
    [21966] dbg: diag: module installed: Getopt::Long, version 2.38
    [21966] dbg: diag: module installed: LWP::UserAgent, version 5.827
    [21966] dbg: diag: module installed: HTTP::Date, version 5.810
    [21966] dbg: diag: module installed: Archive::Tar, version 1.52
    [21966] dbg: diag: module installed: IO::Zlib, version 1.09
    [21966] dbg: diag: module installed: Encode::Detect, version 1.01
    [21966] dbg: gpg: Searching for 'gpg'
    [21966] dbg: util: current PATH is: /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
    [21966] dbg: util: executable for gpg was found at /usr/bin/gpg
    [21966] dbg: gpg: found /usr/bin/gpg
    [21966] dbg: gpg: release trusted key id list: 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45 26C900A46DD40CD5AD24F6D7DEE01987265FA05B 0C2B1D7175B852C64B3CDC716C55397824F434CE
    [21966] dbg: channel: attempting channel updates.spamassassin.org
    [21966] dbg: channel: update directory /var/lib/spamassassin/3.002004/updates_spamassassin_org
    [21966] dbg: channel: channel cf file /var/lib/spamassassin/3.002004/updates_spamassassin_org.cf
    [21966] dbg: channel: channel pre file /var/lib/spamassassin/3.002004/updates_spamassassin_org.pre
    [21966] dbg: channel: metadata version = 895075
    [21966] dbg: dns: 4.2.3.updates.spamassassin.org => 895075, parsed as 895075
    [21966] dbg: channel: current version is 895075, new version is 895075, skipping channel
    [21966] dbg: diag: updates complete, exiting with code 1
    Done
    Checking update....update failed...retrying without gpg...
    Running sa-update (/usr/bin/sa-update).....[22010] dbg: logger: adding facilities: all
    [22010] dbg: logger: logging level is DBG
    [22010] dbg: generic: SpamAssassin version 3.2.4
    [22010] dbg: config: score set 0 chosen.
    [22010] dbg: dns: is Net::DNS::Resolver available? yes
    [22010] dbg: dns: Net::DNS version: 0.66
    [22010] dbg: generic: sa-update version svn607589
    [22010] dbg: generic: using update directory: /var/lib/spamassassin/3.002004
    [22010] dbg: diag: perl platform: 5.008008 linux
    [22010] dbg: diag: module installed: Digest::SHA1, version 2.13
    [22010] dbg: diag: module installed: HTML::Parser, version 3.68
    [22010] dbg: diag: module installed: Net::DNS, version 0.66
    [22010] dbg: diag: module installed: MIME::Base64, version 3.13
    [22010] dbg: diag: module installed: DB_File, version 1.822
    [22010] dbg: diag: module installed: Net::SMTP, version 2.31
    [22010] dbg: diag: module installed: Mail::SPF, version v2.006
    [22010] dbg: diag: module installed: Mail::SPF::Query, version 1.999001
    [22010] dbg: diag: module installed: IP::Country::Fast, version 604.001
    [22010] dbg: diag: module not installed: Razor2::Client::Agent ('require' failed)
    [22010] dbg: diag: module not installed: Net::Ident ('require' failed)
    [22010] dbg: diag: module installed: IO::Socket::INET6, version 2.56
    [22010] dbg: diag: module installed: IO::Socket::SSL, version 1.24
    [22010] dbg: diag: module installed: Compress::Zlib, version 2.017
    [22010] dbg: diag: module installed: Time::HiRes, version 1.9724
    [22010] dbg: diag: module installed: Mail::DomainKeys, version 1.0
    [22010] dbg: diag: module installed: Mail::DKIM, version 0.36
    [22010] dbg: diag: module installed: DBI, version 1.616
    [22010] dbg: diag: module installed: Getopt::Long, version 2.38
    [22010] dbg: diag: module installed: LWP::UserAgent, version 5.827
    [22010] dbg: diag: module installed: HTTP::Date, version 5.810
    [22010] dbg: diag: module installed: Archive::Tar, version 1.52
    [22010] dbg: diag: module installed: IO::Zlib, version 1.09
    [22010] dbg: diag: module installed: Encode::Detect, version 1.01
    [22010] dbg: channel: attempting channel updates.spamassassin.org
    [22010] dbg: channel: update directory /var/lib/spamassassin/3.002004/updates_spamassassin_org
    [22010] dbg: channel: channel cf file /var/lib/spamassassin/3.002004/updates_spamassassin_org.cf
    [22010] dbg: channel: channel pre file /var/lib/spamassassin/3.002004/updates_spamassassin_org.pre
    [22010] dbg: channel: metadata version = 895075
    [22010] dbg: dns: 4.2.3.updates.spamassassin.org => 895075, parsed as 895075
    [22010] dbg: channel: current version is 895075, new version is 895075, skipping channel
    [22010] dbg: diag: updates complete, exiting with code 1
    Done
    
    I've tried upcp --force to clean possible error conditions but with no success.
    And after upcp was run, I get the next results:

    Code:
    root@servidor [~]# service exim restart
    Shutting down exim:                                        [  OK  ]
    Shutting down spamd:                                       [FAILED]
    Starting exim:                                             [  OK  ]
    
    As you can see, it is not trying to start spamd anymore.

    And the warning emails about spamd not running keep coming.

    Something odd, I've noticed is that the sa-update report one version: SpamAssassin version 3.2.4, but when I run "spamd -V" it reports as SpamAssassin Server version 3.3.1. 3.3.1 was reported in Service Status as well, even before the upcp --force I ran today. So, may this be some kind of bug in the upgrade process for Spam Assassin in the last cPanel STABLE update?

    Just for the record: the only strange thing that happened before this began was: an incredibly amount of spam arrived to our server during 1 day at a rate of about 500 messages/hour. To filter that bulk of messages I modified the /etc/cpanel_exim_system_filter as stated here and here. I undo those changes but spamd is still not working.

    Should I open a support ticket?


    Add: I'm using WHM 11.30.1 (build 4) STABLE, on CentOS 4.9. I've upgraded cPanel one week ago, but this issue started 2 days ago. I've always installed STABLE versions.
     
    #1 Kent Brockman, Aug 1, 2011
    Last edited: Aug 1, 2011
  2. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    More to add: some of the received warning messages about spamd not running include the following log information:

    Code:
    Startup Log: Aug  1 08:33:09.851 [31961] warn: Argument "" isn't numeric in addition (+) at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/NetSet.pm line 122.
    Aug  1 08:33:09.874 [31961] warn: oops! unparseable IPv6 address for 127/8: 149323772 at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/NetSet.pm line 128.
    Aug  1 08:33:09.875 [31961] warn: oops! unparseable IPv6 address for 127/8: 149323952 at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/NetSet.pm line 128.
    child process [31965] exited or timed out without signaling production of a PID file: exit 255 at /usr/bin/spamd line 2582.
    
    Any idea?
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    "warn: oops! unparseable IPv6 address for 127/8"

    I wonder what thats doing there?
     
  4. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Well, It seems that I finally was able to solve this issue. The problem seems to be some mis-upgrade by cPanel. I ran these commands and apparently it is working well now.

    Code:
    sa-learn -D --force-expire
    sa-update -D
    /usr/local/cpanel/scripts/spamassassin_dbm_cleaner
    /usr/local/cpanel/scripts/fixspamassassinfailedupdate
    /scripts/restartsrv_spamd
    Also, I readed here that using IPv6 may difficult the functions of SA, so I disabled it, restarted network, ran the above commands, and enabled it again, restarted network, and now SA is working just fine.
     
  5. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    It looks like a known OLD bug in SpamAssassin:
    https://bugzilla.novell.com/show_bug.cgi?id=593247

    I say "OLD" because it is dated on April 2010, but I don't know what SA version have been taken in account by cPanel staff to be implemented in cPanel.
    Nevertheless, it has a solution :)
     
Loading...

Share This Page