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.

Cannot find SpamAssassin

Discussion in 'E-mail Discussions' started by Dante78, May 5, 2010.

  1. Dante78

    Dante78 Well-Known Member

    Joined:
    May 1, 2010
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    hello

    i cannot find spamd on the server

    # service spamd status
    spamd: unrecognized service
    #

    i tried to force reinstall cpanel or # /scripts/checkperlmodules
    and still nothing. how can i reinstall it?

    cheers
     
  2. Dante78

    Dante78 Well-Known Member

    Joined:
    May 1, 2010
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    No one? help please...
     
  3. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Friendly Moderator Note: I moved your questions to their own thread, since they addressed a slightly different issue from that in the original thread to which you replied.

    There is no init script in /etc/rc.d/init.d for spamd on a cPanel server, so "service" will not work for restarting spamd. ("service" is an alias for /etc/rc.d/init.d, and it should not be assumed to exist on all servers, so it is best to use /etc/rc.d/init.d/servicename instead.)

    Instead of trying to use an init script, use /scripts/restartsrv_spamd, which is provided by cPanel:

    Code:
    # /scripts/restartsrv_spamd
    #
    After running this command, check to see if SpamAssassin is running:

    Code:
    # ps aux|grep spamd
    # ps aux|grep spamd
    root     23347 16.7  2.8  31552 29060 ?        Ss   08:29   0:02 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=5
    root     23348  0.0  2.7  31552 27800 ?        S    08:29   0:00 spamd child
    root     23349  0.0  2.7  31552 27780 ?        S    08:29   0:00 spamd child
    root     23378  0.0  0.0   3924   660 pts/0    R+   08:30   0:00 grep spamd
    spamd logs to /var/log/maillog. Any error messages generated by spamd will be written to this log. You should see something similar to the following in /var/log/maillog after running /scripts/restartsrv_spamd:

    Code:
    May  6 08:27:56 seagull spamd[23273]: spamd: server started on port 783/tcp (running version 3.2.4) 
    May  6 08:27:56 seagull spamd[23273]: spamd: server pid: 23273 
    May  6 08:27:56 seagull spamd[23273]: spamd: server successfully spawned child process, pid 23282 
    May  6 08:27:56 seagull spamd[23273]: spamd: server successfully spawned child process, pid 23283 
    If spamd is not running (if no processes are listed by the ps aux|grep spamd commands), please submit a ticket so that we may log into your server and investigate the problem directly and fix it for you.
     
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Spamassasin runs subordinate to exim these days so you can usually restart spamassassin by simply restarting your exim server.

    However, a few things for you to look at though ....
    Code:
    # service exim restart
    # /scripts/restartsrv_spamd
    # chkconfig --list spamd
    # ps aux | grep spamd
    
     
Loading...

Share This Page