Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default SpamAssassin won't start

    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. #2
    Member
    Join Date
    Sep 2005
    Posts
    7

    Default

    i'm having the same problem here. anyone? thanks in advance.

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Just incase you've inadvertently installed the rpm, try:

    rpm -e spamassassin
    /scripts/perlinstaller --force Mail::SpamAssassin
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Sep 2003
    Posts
    69

    Default

    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. #5
    Member
    Join Date
    Oct 2004
    Posts
    106

    Exclamation 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. #6
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Unhappy

    Quote Originally Posted by chirpy
    Just incase you've inadvertently installed the rpm, try:

    rpm -e spamassassin
    /scripts/perlinstaller --force Mail::SpamAssassin
    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
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  7. #7
    Member
    Join Date
    Oct 2004
    Posts
    106

    Unhappy

    Quote Originally Posted by PanelGuy
    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?
    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. #8
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    rpmws, regarding those SA errors:

    /scripts/perlinstaller DB_File Mail::SPF::Query
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  9. #9
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    Quote Originally Posted by chirpy
    rpmws, regarding those SA errors:

    /scripts/perlinstaller DB_File Mail::SPF::Query
    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.
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  10. #10
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. SA:MP won't start?
    By SNN in forum cPGS Discussions
    Replies: 5
    Last Post: 08-15-2008, 12:29 PM
  2. Cpanel won't start
    By KraKaZabRa in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-16-2008, 02:23 AM
  3. firewall won't start
    By zack6924 in forum cPanel Developers
    Replies: 1
    Last Post: 11-11-2006, 09:57 AM
  4. Apache won't start - httpd configtest won't run as root??
    By linearfusion in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-04-2006, 04:44 PM
  5. Apache won't start!!!
    By grey_fox in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-16-2004, 04:28 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube