Skaag Argonius wrote:
Hi Aran,
I've experienced the same problem with the files in ~smtpd/tmp directory. I would definitely be happy to get your clamav replacement plugin. (for speed, AND to get rid of all the temporary files it leaves behind).
I went ahead and made a page with my qpsmtpd plugins, including the modified clamav_clamd plugin:
http://projects.bluefeet.net/
I checked the existing clamav plugin, it does contain a line that unlinks the temporary file... However the file stays there, and I have no idea why. My perl knowledge is close to none.
It appears it is removing the temp file. On my box it _is_ removing the temp files (I only see a couple in there at any one time). Its possible that there is some plugin that is hanging before it has had a chance to close the temp file. When I used to have this problem it was when I enabled spamassassin. I narrowed it down to the spamd daemon locking up occasionally. I never got a chance to verify this problem tho. I think it had something to do with spamd locking up when an e-mail was too big.
I'm experiencing the same problem with SpamAssassin... not only does it leave lots of files under the tmp folder, but some of the mail never reaches its destination altough it's not identified as spam.
Hmm, very odd. Well, you might consider trying my spamassassin_direct plugin just to test and see if it is the spamassassin plugin that is causing all the temp files.
HTH,
Aran
