[CentOS] Delete all mail users data (mail server)
centos at celestial.com
Mon Oct 20 16:57:07 UTC 2008
On Mon, Oct 20, 2008, mouss wrote:
>Roberto Pereyra a écrit :
>> Please I would like to delete all users date mail (not accounts) in my
>> mail server box.
>> I using Centos 5 and Virtualmin with postifx (maildir) and dovecot and
>> sasl auth.
>> Once I erased simply the files in the maildir folders and broke the
>> dovecot setup (dovecot cache or index).
>> Which is the correct way of doing it?
>delete files from cur/ and new/ subdirs is enough. deleting index files
>is good but dovecot will regenerate them anyway.
A somewhat more sophisticated approach might be to clean out old
files using find. This would remove everything over 30 days old
from username's Maildir.
find ~usrname/Maildir/ -type f -mtime +30 | xargs rm
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186
The pinnacle of open systems is: when moving from vendor to vendor, the
design flaws stay the same.
More information about the CentOS