At 03:24 PM 3/9/2007, Francisco Castellon wrote:
>I just noticed on my system that there are millions of messages in
>/var/amavisd/quarantine amounting to about 14G and that there thousands
>in /var/amavisd/tmp amounting to about 4g.
>
>I am not using amavisd for virus scanning at the time being I am just
>using it along with postfix + spamassasin to block out spam. on my
>/etc/amavisd.conf I have set the $final_spam_destiny flag to D_PASS I
>just mark the message with ***POSSIBLE SPAM*** in the subject. I was
>under the understanding that messages only ended up in the quarantine
>directory if the flag was set to D_REJECT. So why is this happening? And
>even if it was the case that they are supposed to end up in the
>quarantine anyways isn't the cleanup agent supposed to clean them out
>after they get to be like a week old or so?

If you want to disable quarantine completely, you can set
$QUARANTINEDIR = undef;
in your amavisd.conf file.

amavisd-new doesn't automatically clean up stuff in the quarantine, 
you need to do that yourself.  Most folks use a crontab entry for 
this, but since you don't want these files just remove them all.
find /var/amavisd/quarantine -print | xargs rm

The stuff in the amavisd-new tmpdir is evidence left over from 
crashes or other unexpected actions.  You need to clean these up manually also.
A crontab entry similar to this should do the trick:
49  1 * * * /usr/bin/find /var/amavis/tmp/ -mtime +7 -print | xargs rm  \;

When you get files hanging in the tmp directory, it's useful to check 
the logs and see what failed.  See:
http://www.ijs.si/software/amavisd/#faq-gen

-- 
Noel Jones 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to