[Dovecot] Rebuild folder listing?
I don't know what to call what I'm trying to do so I'll explain the situation.
I had a total complete crash of the Linux-Vserver system that was hosting a Postfix+Dovecot guest with a three domains and 1-5 accounts per domain. Lots of mail though.
Before it completely melted down I as able to get to the data (messages) and save them and the configuration files for both Dovecot and Postfix.
I now have a replacement system up and running and have copied the directories onto it. I can log in to the accounts but I don't see the folders (I use Thunderbird as a MUA). Attempts to "subscribe" and "refresh" the list give me no results. No list of folders.
What should I do?
I'm thinking I could delete the dovecot files:
dovecot.index,
dovecot.index.cache,
dovecot.index.log,
dovecot-uidlist,
subscriptions,
and while I'm at it possibly dovecot-keywords.
Then access the account(s) and Dovecot will rebuild them with the true/correct information.
Am I heading anywhere near the right direction?
TIA, Rod
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 6 Feb 2009, Roderick A. Anderson wrote:
the list give me no results. No list of folders.
If you see no folders, the problem is not the indexes. I suspect that dovecot now uses other mail_location settings than before. Or the user does not have the correct permissions to access the mails.
Did you enable mail_debug and check the server logs?
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSZAgJXWSIuGy1ktrAQJqHwf/R4w3MrX83FZtqx3SVFt5XPRQBcC/TrXJ veR7+Uf7Fc7Oa/O/yjzR6z45s78VxHQR7CoevUULwzuPhGQxfmByZz1cvYZVbSk+ zQFaVo7egIeGmtjMb0/+dwiQxrFlPyWc110I3FBupeFL8GUtSChu5OEFXq3kXxkH lUFm4x05OU64jFLGD2wFCljDnWPrVtOFdCJK6KzINk0H1xrg+mVDqu3W4Z/5R73m Ryi2EkbkmWHYnbjDT9Ut22QvmQblCIO7/v+HqApAFiccHZxVfA8CsYOaIxrzaCtv cMhIDLJn33v5RWaBtOo9mOC1Gdx6OjaYjft90XDSmRlpfgHsj9rqlw== =m7E3 -----END PGP SIGNATURE-----
Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 6 Feb 2009, Roderick A. Anderson wrote:
the list give me no results. No list of folders.
If you see no folders, the problem is not the indexes. I suspect that dovecot now uses other mail_location settings than before. Or the user does not have the correct permissions to access the mails.
Did you enable mail_debug and check the server logs?
Not yet. I will today. While doing some checking I realized there were what looked like two copies of the same mail directory structure -- one in /var/mail/vhosts and the otehr in /var/spool/mail/vhosts. That could be creating the problem. :-)
This is interesting as I as I copied the config and data (message) files from the system that was working before the crash.
Thanks for the pointers. I'll do some more research, testing, and debugging.
Rod
Bye,
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSZAgJXWSIuGy1ktrAQJqHwf/R4w3MrX83FZtqx3SVFt5XPRQBcC/TrXJ veR7+Uf7Fc7Oa/O/yjzR6z45s78VxHQR7CoevUULwzuPhGQxfmByZz1cvYZVbSk+ zQFaVo7egIeGmtjMb0/+dwiQxrFlPyWc110I3FBupeFL8GUtSChu5OEFXq3kXxkH lUFm4x05OU64jFLGD2wFCljDnWPrVtOFdCJK6KzINk0H1xrg+mVDqu3W4Z/5R73m Ryi2EkbkmWHYnbjDT9Ut22QvmQblCIO7/v+HqApAFiccHZxVfA8CsYOaIxrzaCtv cMhIDLJn33v5RWaBtOo9mOC1Gdx6OjaYjft90XDSmRlpfgHsj9rqlw== =m7E3 -----END PGP SIGNATURE-----
Roderick A. Anderson wrote:
I don't know what to call what I'm trying to do so I'll explain the situation.
It was the typical case of too many things going on at the same time and me in a full-bore-linear-panic over the crashed mail server.
The biggies were:
- The vmail account created with the wrong UID/GID for the configuration, and
- permissions on everything wrong after updating vmail's UID/GID.
This all came about because I kept flipping between a mostly working test system, the system I was trying to get up, and the crashed system's files that got their UIDs/GIDs changed while copying them around.
Thanks to you all for the suggestions (clue-sticks?).
Rod
I had a total complete crash of the Linux-Vserver system that was hosting a Postfix+Dovecot guest with a three domains and 1-5 accounts per domain. Lots of mail though.
Before it completely melted down I as able to get to the data (messages) and save them and the configuration files for both Dovecot and Postfix.
I now have a replacement system up and running and have copied the directories onto it. I can log in to the accounts but I don't see the folders (I use Thunderbird as a MUA). Attempts to "subscribe" and "refresh" the list give me no results. No list of folders.
What should I do?
I'm thinking I could delete the dovecot files:
dovecot.index, dovecot.index.cache, dovecot.index.log, dovecot-uidlist, subscriptions, and while I'm at it possibly dovecot-keywords.
Then access the account(s) and Dovecot will rebuild them with the true/correct information.
Am I heading anywhere near the right direction?
TIA, Rod
participants (2)
-
Roderick A. Anderson
-
Steffen Kaiser