Wednesday, February 4, 2009

Anti Spam with Spamassasin on FreeBSD Linux

If we talk about a packet or application or program on Linux system, we talk about 4 things. How to install it, how to configure it, how to start/stop it, and how to know about the status. The same condition for Spamassasin packet. Now, we talk about Spamassasin on FreeBSD system. Suppose, the packet was installed and configured. We just want to know about the status and how to start or stop it.



Viewing the status

Code :

# ps -aux | grep spamd

Example :

[root@serpong4] /usr/local/etc/rc.d # ps -aux | grep spamd

root 79133 2.2 2.2 49588 46956 ?? S 3:34AM 0:52.66 spamd child (perl5.8.8)

root 79123 0.0 1.7 38336 36148 ?? Ss 3:33AM 0:02.14 /usr/local/bin/spamd -m 10 -d
-r /var/run/spamd/spamd.pid

root 79134 0.0 2.0 45216 42628 ?? S 3:34AM 0:19.62 spamd child (perl5.8.8)

root 82056 0.0 0.2 5900 3728 p0 RV+ 4:21AM 0:00.00 grep spamd (csh)

[root@serpong4] /usr/local/etc/rc.d #

Information above show you that the spamassasin is running. If you don't see display like above, it's better to start or restart ke daemon. Start and restart command has difference effect. Restart command will give you the last status of spam daemon.

How to start the spam daemon

Code :

# /usr/local/etc/rc.d/sa-spamd start

or

/usr/local/etc/rc.d # ./sa-spamd start

Example :

[root@serpong4] /usr/local/etc/rc.d # ./sa-spamd restart

spamd not running? (check /var/run/spamd/spamd.pid).

Starting spamd.

[root@serpong4] /usr/local/etc/rc.d #

You see, "spamd not running?" has mean that spamd has stopped. Therefor, it's better to use restart command than start command.

by. Muh. Sirojul Muniri(msmunir@batan.go.id)

1 comment:

  1. hohohoho..kereenn,,,jago pemrograman neh..mantaabb..numpang berguru yaa..

    keep share..
    thanks.

    ReplyDelete