Discussion:
Amavis quarantine cleanup
Cristian Livadaru
2009-05-27 14:46:24 UTC
Permalink
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
Andre Mathibe
2009-05-27 14:58:39 UTC
Permalink
Post by 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>
Andrew J. Kopciuch
2009-05-27 15:35:50 UTC
Permalink
Post by Andre Mathibe
10 2 * * * find /var/spool/amavis/tmp/ -mtime +31 -exec rm -r {} \;
15 2 * * * find /var/spool/amavis/virusmails/ -mtime +31 -exec rm {} \;
+1




Andy
-------------- 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/f2aec787/attachment.sig>
Cristian Livadaru
2009-05-28 11:45:52 UTC
Permalink
Post by Andre Mathibe
Post by 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>
Bernhard Reiter
2009-05-28 19:30:26 UTC
Permalink
Post by Cristian Livadaru
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
Please also add nice hints to the wiki. ;)
--
Managing Director - Owner: www.intevation.net (Free Software Company)
Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com.
Intevation GmbH, Osnabr?ck, DE; Amtsgericht Osnabr?ck, HRB 18998
Gesch?ftsf?hrer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.kolab.org/pipermail/users/attachments/20090528/5ff2ca2e/attachment.sig>
Cristian Livadaru
2009-06-01 11:02:32 UTC
Permalink
Post by Bernhard Reiter
Post by Cristian Livadaru
Post by Andre Mathibe
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
Please also add nice hints to the wiki. ;)
done.

https://wiki.kolab.org/index.php/Amavisd-new#Amavis_quarantine_cleanup

Regards, Cristian

--
http://lcx.at/

-------------- 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/20090601/acb01ad1/attachment.sig>
Loading...