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.

Completely disable SpamAssassin

Discussion in 'General Discussion' started by elenlace, Mar 11, 2007.

  1. elenlace

    elenlace Well-Known Member

    Joined:
    Sep 10, 2002
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    Hi,

    I implemented the excelent ASSP spam solution by Radio Head so I don't need SpamAssassin anymore. I disabled it under tweak settings and service manager, however, when I restart exim, I get:

    Shutting down clamd: [ OK ]
    Shutting down exim: [ OK ]
    Shutting down antirelayd: [ OK ]
    Shutting down spamd: [FAILED]
    Starting clamd: [ OK ]
    Starting exim: [ OK ]
    Starting exim-smtps: [ OK ]
    Starting antirelayd: [ OK ]

    It is still trying to shut down spamd. How can I completely remove spamassassin from the server?

    Warmest Regards!
     
  2. kens6139

    kens6139 Active Member

    Joined:
    Dec 21, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chattanooga, Tennessee, United
    cPanel Access Level:
    Root Administrator
    You can edit the exim startup script, /etc/init.d/exim.

    backup your file first, #cp exim exim.bak

    then, #nano exim

    scroll down and remove the following section

    if [ -x "/usr/bin/spamd" ]; then
    echo -n "Starting spamd: "
    $DAEMONIZE /usr/bin/spamd -d ${local+"--local"} --allowed-ips=${allowedips-127.0.0.1} \
    ${timeouttcp+"--timeout-tcp="}${timeouttcp} ${timeoutchild+"--timeout-child="}${timeoutchild} \
    --pidfile=${pidfile-"/var/run/spamd.pid"} --max-children=${maxchildren=5} \
    ${maxconnperchild+"--max-conn-per-child="}${maxconnperchild}
    echo $RESULT
    fi
    fi


    scroll down a few more lines and remove this section

    echo -n "Shutting down spamd: "
    killproc spamd
    echo $RESULT
    rm -f /var/lock/subsys/exim


    exit and save, that should do it

    If things go south restore backup, #cp exim.bak exim
     
Loading...

Share This Page