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.

SpamAssassin won't start

Discussion in 'General Discussion' started by elleryjh, Sep 21, 2005.

  1. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    I had SpamAssassin disabled for a while because I was using a different package. Now I've re-enabled it in Tweak Settings and Service Manager, but mail isn't being flagged by it, and I can't seem to get it to run... Any help would be appreciated.

    When I run a manual update:
    Code:
       SpamAssassin disabled in Service Manager
       ...
       Mail::SpamAssassin is up to date.
    ( I have checked and double-checked: it's NOT disabled in service manager. )
    When I restart exim from the command line:
    Code:
    [~]# service exim restart
    Shutting down clamd:                                       [  OK  ]
    Shutting down exim:                                        [  OK  ]
    Shutting down antirelayd:                                  [  OK  ]
    Shutting down spamd:                                       [FAILED]
    Starting clamd:                                            [  OK  ]
    Starting exim-2525:                                        [  OK  ]
    Starting exim:                                             [  OK  ]
    Starting exim-outgoing:                                    [  OK  ]
    Starting exim-smtps:                                       [  OK  ]
    Starting antirelayd:                                       [  OK  ]

    When I try to restart spamassassin:
    Code:
    [~]# service spamassassin restart
    Shutting down spamd:                                       [FAILED]
    Starting spamd: [8709] warn: Unknown option: a
    Usage:
        spamd [options]
    
        Options:
    
         -l, --allow-tell                   Allow learning/reporting
         -c, --create-prefs                 Create user preferences files
         -C path, --configpath=path         Path for default config files
         --siteconfigpath=path              Path for site configs
         -d, --daemonize                    Daemonize
         -h, --help                         Print usage message.
         -i [ipaddr], --listen-ip=ipaddr    Listen on the IP ipaddr
         -p port, --port=port               Listen on specified port
         -m num, --max-children=num         Allow maximum num children
         --min-children=num                 Allow minimum num children
         --min-spare=num                    Lower limit for number of spare children
         --max-spare=num                    Upper limit for number of spare children
         --max-conn-per-child=num           Maximum connections accepted by child 
                                            before it is respawned
         --round-robin                      Use traditional prefork algorithm
         --timeout-tcp=secs                 Connection timeout for client headers
         --timeout-child=secs               Connection timeout for message checks
         -q, --sql-config                   Enable SQL config (only useful with -x)
         -Q, --setuid-with-sql              Enable SQL config (only useful with -x,
                                            enables use of -H)
         --ldap-config                      Enable LDAP config (only useful with -x)
         --setuid-with-ldap                 Enable LDAP config (only useful with -x,
                                            enables use of -H)
         --virtual-config-dir=dir           Enable pattern based Virtual configs
                                            (needs -x)
         -r pidfile, --pidfile              Write the process id to pidfile
         -s facility, --syslog=facility     Specify the syslog facility
         --syslog-socket=type               How to connect to syslogd
         -u username, --username=username   Run as username
         -v, --vpopmail                     Enable vpopmail config
         -x, --nouser-config                Disable user config files
         --auth-ident                       Use ident to authenticate spamc user
         --ident-timeout=timeout            Timeout for ident connections
         -A host,..., --allowed-ips=..,..   Limit ip addresses which can connect
         -D, --debug[=areas]                Print debugging messages (for areas)
         -L, --local                        Use local tests only (no DNS)
         -P, --paranoid                     Die upon user errors
         -H [dir], --helper-home-dir[=dir]  Specify a different HOME directory
         --ssl                              Run an SSL server
         --server-key keyfile               Specify an SSL keyfile
         --server-cert certfile             Specify an SSL certificate
         --socketpath=path                  Listen on given UNIX domain socket
         --socketowner=name                 Set UNIX domain socket file's owner
         --socketgroup=name                 Set UNIX domain socket file's group
         --socketmode=mode                  Set UNIX domain socket file's mode
    
                                                               [FAILED]
     
  2. guapunya

    guapunya Member

    Joined:
    Sep 9, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    i'm having the same problem here. anyone? thanks in advance.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Just incase you've inadvertently installed the rpm, try:

    rpm -e spamassassin
    /scripts/perlinstaller --force Mail::SpamAssassin
     
  4. Lem0nHead

    Lem0nHead Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    i had the same problem, tried that and it didn't work
    I "fixed" removing the "-a" from /etc/sysconfig/spamassassin
    but I don't know what it did...
     
  5. PanelGuy

    PanelGuy Well-Known Member

    Joined:
    Oct 13, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    SpamAssassin in sysconfig

    Hmm, I dont' even have a SpamAssassin in /etc/sysconfig.
    I have forced reintall through SSH and removed and re-installed in WHM, but I get the same thing, no file and I am told it is off in Services.
    Yet clearly the exim_paniclog tells me it is failing. :)

    Any ideas? Is this a bug?
     
  6. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    Hey Chirpy ..you know a little about SA and exim :) I have been getting this kind of error related to SA in my maillog: any clue how to fix?

    Nov 12 17:04:18 box spamd[495]: spamd: setuid to user1 succeeded
    Nov 12 17:04:18 box spamd[495]: Can't locate DB_File.pm in @INC (@INC contains: ../lib /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.1/i686-linux /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at /usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/BayesStore/DBM.pm line 97.
    Nov 12 17:04:18 box spamd[495]: spamd: processing message <BF9BCC95.ABB8%cbrust@americananglican.org> for user1:32143
    Nov 12 17:04:18 box spamd[495]: Can't locate Mail/SPF/Query.pm in @INC (@INC contains: ../lib /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.1/i686-linux /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at /usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/Plugin/SPF.pm line 272, <GEN13> line 2533.
    Nov 12 17:04:21 box spamd[495]: Can't locate DB_File.pm in @INC (@INC contains: ../lib /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.1/i686-linux /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at (eval 832) line 1, <GEN13> line 2533.
    Nov 12 17:04:21 box spamd[495]: spamd: clean message (1.1/5.0) for user1:32143 in 3.6 seconds, 127774 bytes.
    Nov 12 17:04:21 box spamd[495]: spamd: result: . 1 - AWL,HTML_10_20,HTML_FONT_BIG,HTML_MESSAGE scantime=3.6,size=127774,user=user1,uid=32143,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=44056,mid=<BF9BCC95.ABB8%cbrust@domain.org>,autolearn=no
    Nov 12 17:04:21 box spamd[472]: prefork: child states: II
    Nov 12 17:04:30 box spamd[495]: spamd: connection from localhost [127.0.0.1] at port 44062
    Nov 12 17:04:30 box spamd[495]: spamd: setuid to user2 succeeded
    Nov 12 17:04:30 box spamd[495]: Can't locate DB_File.pm in @INC (@INC contains: ../lib /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.1/i686-linux /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at /usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/BayesStore/DBM.pm line 97.
    Nov 12 17:04:30 box spamd[495]: spamd: processing message <NKU94TFOQGGE80D0KZTS.@mail1.domain.com> for user2:32096
    Nov 12 17:04:30 box spamd[495]: Can't locate Mail/SPF/Query.pm in @INC (@INC contains: ../lib /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.1/i686-linux /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at /usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/Plugin/SPF.pm line 272, <GEN15> line 107.
    Nov 12 17:04:30 box spamd[495]: Can't locate DB_File.pm in @INC (@INC contains: ../lib /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.1/i686-linux /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at (eval 839) line 1, <GEN15> line 107.
    Nov 12 17:04:30 box spamd[495]: spamd: identified spam (10.6/5.0) for user2:32096 in 0.5 seconds, 3983 bytes.
    Nov 12 17:04:31 box spamd[495]: spamd: result: Y 10 - HTML_IMAGE_ONLY_16,HTML_IMAGE_RATIO_02,HTML_MESSAGE,HTML_SHORT_LINK_IMG_3,INVALID_DATE,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_WS_SURBL scantime=0.5,size=3983,user=user2,uid=32096,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=44062,mid=<NKU94TFOQGGE80D0KZTS.@mail1.dommain.com>,autolearn=no
     
  7. PanelGuy

    PanelGuy Well-Known Member

    Joined:
    Oct 13, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    Still not in /etc/sysconfig, but one thing I see could be causing the failures is that it is running on a port instead of a socket. Any idea where I change that? I think the port is getting flack from the firewall. I tried the obvious, setting a .pid file via the WHM spamd startup config, but that didn't seem to do it.
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    rpmws, regarding those SA errors:

    /scripts/perlinstaller DB_File Mail::SPF::Query
     
  9. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    hey man thanks for your help!!! That cleared up much of it but now I have:
    Can't call method "finish" on an undefined value at /usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/Plugin/AWL.pm line 397, <GEN16> line 115.

    and this one:
    List::Util object version 1.14 does not match bootstrap parameter 1.17 at /usr/lib/perl5/5.8.7/i686-linux/DynaLoader.pm line 253.

    The first error I am getting on ALL my boxes but the more complex errors have been on 7.3 boxes including the first one above.
     
  10. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    For the second one, you could try the following, but it may not help:

    /scripts/perlinstaller --force List::Util

    For the first one, I would edit /etc/mail/spamassassin/v310.pre and comment out the line:

    loadplugin Mail::SpamAssassin::Plugin::AWL
     
Loading...

Share This Page