LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-29-2017, 06:17 PM   #1
kb2tfa
Member
 
Registered: Oct 2006
Location: New Jersey
Distribution: CentOS
Posts: 175

Rep: Reputation: 18
Delete Large File in Dovecot


There was an email account that was rather large (40G). The emails up until a certain date were archived, and they were to be removed after the user had time to keep what they wanted.

I had deleted the Maildir/archive2015 file which was 40G or so, and there is still 40G in the dovecot.index.cache file. I looked through the dovecot manpages looking for a way to clear that, but I didn't find anything.

If I if rename dovecot.index.cache to dovecot.index.cache.old, will dovecot create a new dovecot.index.cache, thus allowing me to delete the 40G renamed file?
 
Old 10-29-2017, 06:57 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I usually just try out things like that. I think I'd
1. stop dovecot
2. mv the cache file
3. restart dovecot
...and see what happens. If dovecot creates a new cache file (and I think it will), then you'd be ok to remove the old one

Before posting this, I did a search for "reset dovecot cache" and found this
 
Old 10-29-2017, 07:04 PM   #3
kb2tfa
Member
 
Registered: Oct 2006
Location: New Jersey
Distribution: CentOS
Posts: 175

Original Poster
Rep: Reputation: 18
Thank you for that link Sean. Dovecot docs say Dovecot will recreate and index files that are missing when the user checks their mail next. I did every search but 'reset'. I will try to delete the index.cache to see what happens, and if all works, I'll close this. It's a very busy mail server, so I am apprehensive about stopping it for one mailbox.
 
Old 10-29-2017, 08:09 PM   #4
kb2tfa
Member
 
Registered: Oct 2006
Location: New Jersey
Distribution: CentOS
Posts: 175

Original Poster
Rep: Reputation: 18
I deleted the dovecot.index.cache file, and I watched the logs. The user was able to login without issue, and Dovecot created a new dovecot.index.cache file.
 
  


Reply

Tags
debian jessie, dovecot



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sort large data in large file - commands smithy2010 Linux - Newbie 7 02-03-2013 09:01 AM
Shell Session Crashing when cat'ing a large file, tar'ing a large file, etc. newmanium2001 Linux - General 3 12-22-2012 10:32 PM
Cannot delete a very large folder thasan Linux - General 4 10-07-2009 08:25 PM
Sendmail , dovecot , user must not able to delete mails kanslabpa Linux - Server 1 06-04-2009 08:41 AM
[quick] trying to split a large file but linux says it's to large steve51184 Linux - General 16 05-06-2008 07:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration