[Dovecot] removing old emails
Hello, I need to remove mail older than for example 30 days. Email is stored in maildir format. can I just use a cron job and shell script or will that mess up indexs? Thanks Ray
Ray, We do this, deleting spam filtered messages older than 21 days. We also delete the index's and let Dovecot re-generate them. Have had no problems with this method for 4 months.
Regards
Dean Manners
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Ray Sent: Thursday, May 10, 2007 7:56 AM To: dovecot@dovecot.org Subject: [Dovecot] removing old emails
Hello, I need to remove mail older than for example 30 days. Email is stored in maildir format. can I just use a cron job and shell script or will that mess up indexs? Thanks Ray
On Wednesday 09 May 2007 9:11 pm, Dean Manners wrote:
Ray, We do this, deleting spam filtered messages older than 21 days. We also delete the index's and let Dovecot re-generate them. Have had no problems with this method for 4 months.
Regards
Dean Manners
Thanks, I thought that should work, but it just seemed to easy... Ray
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Ray Sent: Thursday, May 10, 2007 7:56 AM To: dovecot@dovecot.org Subject: [Dovecot] removing old emails
Hello, I need to remove mail older than for example 30 days. Email is stored in maildir format. can I just use a cron job and shell script or will that mess up indexs? Thanks Ray
On Thu, 2007-05-10 at 13:11 +1000, Dean Manners wrote:
Ray, We do this, deleting spam filtered messages older than 21 days. We also delete the index's and let Dovecot re-generate them. Have had no problems with this method for 4 months.
There's no need to delete Dovecot's indexes. It'll just slow it down and perhaps cause problems if you delete them while they're being used.
participants (3)
-
Dean Manners
-
Ray
-
Timo Sirainen