Koozali.org: home of the SME Server

Don't run ASSP as a daemon!

midtoad

Don't run ASSP as a daemon!
« on: January 21, 2004, 06:19:16 AM »
well, that's my take on it, anyway.  Don't run the ASSP anti-spam utility as a daemon under SME Server 5.6. My experience was that, under some condition, what happens is that the application is launched over and over and over as the server reboots. Even before you get a root prompt, you will have over 50 copies of 'perl /usr/local/assp/a assp.pl' in your ps listing, so you will not be able to use 'killall pidof perl to kill them off (that command has a limit of 32 copies). Soon thereafter, your server will run out of memory and crash. When you reboot, it starts all over again!

the only way out of this ugly mess is the following: as soon as you get a root prompt, use 'telinit 1' to switch to single-user mode with no network. There, go into assp.cfg and change the following line:
from: AsADaemon:=1
  to: AsADaemon:=0
then return to normal operation with 'telinit 7'.

One other thing, if you run ASSP you should have probably 256 MB of RAM at a minimum. When it runs its rebuildspamdb.pl script, it uses a lot of memory!  On my lowly Pentium-II 350, it takes 40 minutes to rebuild.

cheers