Amavis quarantine cleanup

Andre Mathibe andre.mathibe at mortgage-services.de
Wed May 27 16:58:39 CEST 2009


Am Mittwoch, 27. Mai 2009 schrieb Cristian Livadaru:
> Hi everyone.
>
> just noticed I have quite a lot of mails in the amavis quarantine
> directory.
> Is there any Kolab way of doing a cleanup? Or should I just write my
> own script to delete old mails.
>
> Or has anybody done thtat already? Couldn't really find anything.
>
> Regards, Cristian
>
> _______________________________________________
> Kolab-users mailing list
> Kolab-users at kolab.org
> https://kolab.org/mailman/listinfo/kolab-users


i used this in my crontab ....  quick and not soooooooo dirty,...

#### delete qurantained Virus-eMails older than 30 days ####
10 2 * * * find /var/spool/amavis/tmp/ -mtime +31 -exec rm -r {} \;
15 2 * * * find /var/spool/amavis/virusmails/ -mtime +31 -exec rm {} \;


-- 
Andre Mathibe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.kolab.org/pipermail/users/attachments/20090527/a92ee9af/attachment.sig>


More information about the users mailing list