Completely disable SpamAssassin

elenlace

Well-Known Member
Sep 10, 2002
101
0
166
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!
 

kens6139

Active Member
Dec 21, 2003
27
0
151
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