Cyber Sentry
Applications Development
System Architecture Design
Technical Due Diligence
Qmail Support and Consultancy
Partners
Client Testimonials
Help Sections
Software Patents
Site Map
Contact us
Community
Home
 
Home

How do I delete old email from my users accounts?

I want to delete all email in my users account directories that is over 90 days old. This will help me to save disk space. How can I do this? I use Maildir mail boxes.

 

Answer:

Use a simple cron job to do this.

 

find /home/youruser/Maildir/new -type f -ctime +90 | xargs rm

 

 

 

clean up new york

What it means: look in the user's unread folder (Maildir/new) for any regular files (-type f) older than 90 days (-ctime +90) and send these files (xargs) to the delete command (rm).

 



Qmail Help Section
Perl Tutorial
Top top Copyright Cyber Sentry Ltd  

Cyber Sentry -- Application Development Sitemap 1 2 3