Hi,
I too have been having these issues with spamd, my symptoms is the mail starts to backup in the queues with a status of spam-check, and the queue just backs up and eventually all email is hung, this does eventually clear if your mail server does not receive mail for like 6 hrs :), but in our case we are not so lucky.
Spamd obviously does take up a huge amount of memory up, but by just killing spamd from task manager does not always clear the mail queues. By disabling spam assain in the the SM control panel resolves this and within 2-3 minutes the queues are back to normal. I have noticed that this seems to only start backing up when large emails ie 1-5Mb are received and for some unknown reason one of the large email starts this process happeneing. It is not a contant that when large emails come in it happens, it just seems to be a random thing that happens. On our servers this problem happens 2 x a day and we have setup a kill process and restart the spamd process, but this does not resolve the problem
I started to see if there was anything I could do to try and sort this out and try to identify the problem, We make use of KMParse from Kevin, and it can make use of spamassain as well, what I did was to disable spam assassin in SM and enabled it in Kmparse, and executed spamd from kmparse.
The interesting point to note here is it is using smartermails version of spamasassin located in the SM folders, it uses less memory than when SM starts spamd, and even if the settings to allow emails of up to 4mb is set it does not hiccup and the queue starts to backup. I have been running this like this for the last 2 days and spam assasin sits at around 180Mb usage, it obviously does go up but withing a minute or two its back to normal.
My question are :
-
if it doesnt hang under kmparse why does it hang under SM control ?
-
Why doesnt SM time out the spam-check after 60 secs and carry on like it would if SA was not running
The problem is obvious. It is a mail size issue and SM needs to give us a max message size parameter so that emails above that maximum size are not sent to spamassassin. SM5 has this option surely this can be enabled for SM4.3 as well. like most othe applications that run spamassassin there is a max message size setting which only sends emails under that size to spamasassin, I doubt if a spammer going to send a mail larger than 512kb. so why was this not hard coded a long time back ?