Grokbase
Topics Posts Groups | in
x
[ help ]

Re: Delete all mail users data (mail server)

View PostFlat  Thread  Threaded | < Prev
Bill Campbell Re: [CentOS] Delete all mail users data (mail server)
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Mon, Oct 20, 2008, mouss wrote:
>Roberto Pereyra a écrit :
>> Hi
>>
>> 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

Bill
--
INTERNET: [email protected: b...@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.
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos

Thread : Delete all mail users data (mail server)
1)
Roberto Pereyra Hi Please I would like to delete all users date mail (not accounts) in my mail server box. I using...
2)
mouss Roberto Pereyra a écrit : delete files from cur/ and new/ subdirs is enough. deleting index files...
3)
Bill Campbell A somewhat more sophisticated approach might be to clean out old files using find. This would...
spacer
View PostFlat  Thread  Threaded | < Prev