Hi,
A while ago, something weird happened in one of my mailbox users deleted items when using Evolution email against the ClearOS IMAP Server. When she tried to expunge her deleted items it appeared to work and then suddenly all the deleted items re-appeared along with what appears to be multiple duplicates of the deleted items. This kept happening and now she has literally millions of deleted items and any attempt to expunge them from within Evolution seems to make things worse.
Is there a way I could just delete the physical files from the /usr/lib/cyrus-imapd/ folder or will this break Cyrus.
I had a look around here and on the Cyrus IMAP site and can't seem to find a way to remove these files from a command line.
Any help would be appreciated as this is driving me nuts and making my backups take longer and longer plus the danger of using up my free disk space.
Graham Sivill
A while ago, something weird happened in one of my mailbox users deleted items when using Evolution email against the ClearOS IMAP Server. When she tried to expunge her deleted items it appeared to work and then suddenly all the deleted items re-appeared along with what appears to be multiple duplicates of the deleted items. This kept happening and now she has literally millions of deleted items and any attempt to expunge them from within Evolution seems to make things worse.
Is there a way I could just delete the physical files from the /usr/lib/cyrus-imapd/ folder or will this break Cyrus.
I had a look around here and on the Cyrus IMAP site and can't seem to find a way to remove these files from a command line.
Any help would be appreciated as this is driving me nuts and making my backups take longer and longer plus the danger of using up my free disk space.
Graham Sivill
In Mail
Share this post:
Accepted Answer
There are all sorts of things you can do. I have the following three lines added to the events section of my /etc/cyrus.conf:
Individual mailboxes can be manipulated with the cyradm command which you can use with "cyradm localhost". Your root password should work.
Ultimately you can delete individual files from /var/spool/imap and wait for it to re-index overnight.
delprune cmd="cyr_expire -E 1 -X 7 -D 7" at=0110
spamPurge cmd="ipurge -s -X -f -d 5 user/*/Junk" at=0102
trashPurge cmd="ipurge -s -X -f -d 350 user/*/Trash" at=0103
I believe they work but you can research them. It could be the cyr_expire command you are looking for. I also have a cron job:/usr/lib/cyrus-imapd/cyr_expire -E 1 -X 7 -D 7
Because of this duplication, I don't know which is doing the work!Individual mailboxes can be manipulated with the cyradm command which you can use with "cyradm localhost". Your root password should work.
Ultimately you can delete individual files from /var/spool/imap and wait for it to re-index overnight.
Responses (10)
-
Accepted Answer
-
Accepted Answer
Nick,
Sorry for my delay getting back to report my findings, I had the coronavirus jab and it knocked me for six so I am only just back at my desk today!
Everything seems to be back to normal again my daily backup reports seem OK again and the mailbox is now behaving itself so the fixes seem to have worked.
Thanks as always for your help.
Graham Sivill -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Nick,
The deletion went fine so the "/var/spool/imap/l/user/lynn/Deleted Items" folder is now empty. So hopefully when the re-indexing occurs all will be well.
I added the 3 lines on the end of the cyrus.conf file OK.
However when I ran "crontab -e" and added the line you had given when I saved and exited nano I go this error:
no crontab for siv - using an empty one
crontab: installing new crontab
"/tmp/crontab.4Yd8Ak/crontab":23: bad minute
errors in crontab file, can't install.
Do you want to retry the same edit? (y/n) y
I pressed Y and tried again but get:
crontab: installing new crontab
"/tmp/crontab.4Yd8Ak/crontab":23: bad minute
errors in crontab file, can't install.
Do you want to retry the same edit? (y/n)
So I pressed N and exited so not sure what I am doing wrong here?
Graham Sivill -
Accepted Answer
-
Accepted Answer
Nick,
Thanks very much for your response, I will delete the files in "/var/spool/imap/l/user/lynn/Deleted Items" first, and this should hopefully reduce the load on my disks and then I will implement the changes /etc/cyrus.conf and cron.daily.
I will report back if that has worked.
Graham Sivill
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »