Amavis quarantine cleanup

Cristian Livadaru cristian at livadaru.net
Thu May 28 13:45:52 CEST 2009


On 27. May 2009, at 16:58 , Andre Mathibe wrote:

> 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 {}  
> \;
>
>

thanks, just added this to my crontab

Cris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.kolab.org/pipermail/users/attachments/20090528/9058f569/attachment.sig>


More information about the users mailing list