autostart spamd with Exim

DaMick

Verified User
Joined
Sep 23, 2006
Messages
18
Location
BE
Hi,

I installed spamassassin like described in the little howto here. But my problem now is that I have to manualy start spamd whenever I restart exim. So I whas wondering if there is a way to start spamd automaticaly whenever exim is (re)-started to make the process a bit faster.

Thanks in advance
 
You don't point to the howto you followed, so we don't know how you installed SpamAssassin.

The "official" installation of SpamAssassin (using the spam.sh script) adds the SA startup to the exim startup scripts.

Jeff
 
Just edit exim start/stop script :)

Add this in stop:
killproc spamd

And this in start:
if [ -x "/usr/bin/spamd" ]; then
echo -n "Starting spamd: "
/usr/bin/spamd -d -c -m 5
echo "done"
fi
 
That's what I do, and so far it's always worked for me on CentOS.

What OS do you use?

Here are the lines from my CentOS /etc/init.d/exim file:

For start:
Code:
        if [ -e /usr/bin/spamd ]; then /usr/bin/spamd -d -c -m 5 1>/dev/null 2>/dev/null; fi
And for stop:
Code:
if [ -e /usr/bin/spamd ]; then killall -9 spamd 1>/dev/null 2>/dev/null; fi
Jeff
 
I also use CentOS. So I can use your code 2.
Thanks for the help Jeff and smtalk
 
Back
Top