Re: Deleting "ghost" mailboxes that don't correspond to filesystem directories
Michael Menge <[email protected]>
| Newsgroups | gmane.mail.imap.cyrus |
|---|---|
| Message-ID | <20250304191500.Horde.2YXfMKl71NC_rfw67zA0ttH@webmail.uni-tuebingen.de> |
Hi, Quoting Jay Sekora <[email protected]>: > Hi! In preparation for a migration to a new server, I've had to touch > all ~140k mailboxes on my system, and I've discovered a handful that are > listed by "cyrus mboxlist" (this is Debian/Ubuntu with their "cyrus" > helper script), but that do not correspond to any directory in the > filesystem. > I don't know the Debian/Ubuntu "cyrus" helper script. I will therefor refer to the "ctl_mboxlist -d" which probably gives the list of mailboxes with some additional information first check "unixhierarchysep:" setting in your imapd.conf. The default value has changed in cyrus-imapd 3.0. But even if the setting is "1" (on) the ctl_mboxlist output, some log-entries and error-messages still use the "internal" format where the hierarchy separator is "." also if I remember correctly, in cyrus-imap 2.4 tombstone records where introduced to the mailboxlist. An entry with " 16 (null) " indicates an "recently" deleted mailbox So you can ignore those. If "unixhierarchysep:" is on you have to use # cyrus reconstruct user/[redacted]/Templates > How can I delete these? "reconstruct" in cyradm or "cyrus reconstruct" > produce errors like the following: > > # cyrus reconstruct user.[redacted].Templates > user.[redacted].Templates: failed to read index header > user.[redacted].Templates: Invalid mailbox name (null) > The "Invalid mailbox name" can indicate that "mailbox" does not exist in the mailboxlist, e.g. because it has already been deleted, or because of the wrong hierarchy separator is used. -- -------------------------------------------------------------------------------- Michael Menge Tel.: (49) 7071 / 29-70316 Universität Tübingen Fax.: (49) 7071 / 29-5912 Zentrum für Datenverarbeitung mail: [email protected] Wächterstraße 76 72074 Tübingen ------------------------------------------ Cyrus: Info Permalink: https://cyrus.topicbox.com/groups/info/Te4b694eca4c5d369-Mffb45370d6fcda2a4897dc15 Delivery options: https://cyrus.topicbox.com/groups/info/subscription
smime.p7s
(application/pkcs7-signature, 6.5 KB) - not displayed