[Dovecot] Converting UW MBX mail folder
We converted from uw-imapd to dovecot but are still having problems with MBX mail folders.
The user can't access this "MBX mail folder":
[root@volt Resume's]# file "Sys Admin" Sys Admin: MBX mail folder [root@volt Resume's]# mailutil copy ./"Sys Admin" '#driver.unix/new' Can't open mailbox ./Sys Admin: no such mailbox [root@volt Resume's]# mailutil copy -debug -verbose./SysAdminSave '#driver.unix/new' Can't open mailbox ./SysAdminSave: no such mailbox
Could you tell me what I am doing wrong?
Anne M. Hammond - Systems / Network Administration - Tech-X Corp
On 2006-09-28 18:12:22 -0600, Anne Hammond wrote:
We converted from uw-imapd to dovecot but are still having problems with MBX mail folders.
The user can't access this "MBX mail folder":
MBX is not supported.
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Thank you. Read further in my message. I was trying to convert from MBX format via mailutil.
mailutil isn't recognzing the "MBX mail folder":
[root@volt Resume's]# file "Sys Admin" Sys Admin: MBX mail folder [root@volt Resume's]# mailutil copy ./"Sys Admin" '#driver.unix/new' Can't open mailbox ./Sys Admin: no such mailbox
I've copied the MBX mail folder to a name without spaces, and also copied it to a different directory and changed the modes, but still get the same error message.
Any assistance appreciated because this has been a huge headache for a number of people.
Anne M. Hammond - Systems / Network Administration - Tech-X Corp
On Fri, 29 Sep 2006, Marcus Rueckert wrote:
On 2006-09-28 18:12:22 -0600, Anne Hammond wrote:
We converted from uw-imapd to dovecot but are still having problems with MBX mail folders.
The user can't access this "MBX mail folder":
MBX is not supported.
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 28 Sep 2006, Anne Hammond wrote:
mailutil isn't recognzing the "MBX mail folder":
But your UW-Imap server does. Actually, if you read the doc of mailutil carefully, you get the impression that any operation should be performed through IMAP. I did and converted approx. 800 without the user noting it. More importantly, mailutil seems to use clean IMAP ;-)
For doing so, I patched the password databases so mailutil could login with a master password to both IMAP servers.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux)
iQEVAwUBRRzDPS9SORjhbDpvAQIjqQgA6Fu1ZbFrjjwNL4gtkmx2nSrvRYK74kl2 WBKCKzr+H0uVx1SUOQ9YRoFygbIyePCY7kpL4YKQ3/OW8nbuVpLO96sVUIAaa5QJ PqgRwv9uhFTkplNwzs8CurwNH/nNCe0g2luIemiaIXoZv+JE2TW9leizNfunV2YG 9vAIV88NzG24Jwo8l3Gf0I65t61d7lYqUJH+OwZ8QxFrYQKBkhkpgvtaj6MfGrct A4oYrKblEfdVRGKvcymAwdjc2QNpFdQ9qRsuSkJaoPbog8UHDdCCRlv2TvfrrqMR j8qGNrtfi8XRPrzpS2vVMYDbn7VjUEExHaWJc96h/0M6UYmnuk6Z+g== =ak0i -----END PGP SIGNATURE-----
On Thu, 2006-09-28 at 18:48 -0600, Anne Hammond wrote:
Thank you. Read further in my message. I was trying to convert from MBX format via mailutil.
mailutil isn't recognzing the "MBX mail folder":
[root@volt Resume's]# file "Sys Admin" Sys Admin: MBX mail folder [root@volt Resume's]# mailutil copy ./"Sys Admin" '#driver.unix/new' Can't open mailbox ./Sys Admin: no such mailbox
I've copied the MBX mail folder to a name without spaces, and also copied it to a different directory and changed the modes, but still get the same error message.
Any assistance appreciated because this has been a huge headache for a number of people.
mailutil seems to always look for the folder starting from the home directory no matter what path you give it on the command line.
This is how I convert MBX folders:
create a directory uw under the home directory:
cd
mkdir -m 700 uw
copy the mbx folders into that directory
convert with mailutil like this:
mailutil copy -verbose uw/$in \#driver.unix/uw/$out
-- Ian
I think you need to specify the full path to the MBX file. Also, if it's INBOX, you'll need to rename it to something else first and rename it back afterwards.
So something like:
mailutil copy pwd
/"Sys Admin" "#driver.unix/pwd
/new"
should work.
Best Wishes, Chris
Anne Hammond wrote:
We converted from uw-imapd to dovecot but are still having problems with MBX mail folders.
The user can't access this "MBX mail folder":
[root@volt Resume's]# file "Sys Admin" Sys Admin: MBX mail folder [root@volt Resume's]# mailutil copy ./"Sys Admin" '#driver.unix/new' Can't open mailbox ./Sys Admin: no such mailbox [root@volt Resume's]# mailutil copy -debug -verbose./SysAdminSave '#driver.unix/new' Can't open mailbox ./SysAdminSave: no such mailbox
Could you tell me what I am doing wrong?
Anne M. Hammond - Systems / Network Administration - Tech-X Corp
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
mailutil needs the full path to the MBX mail folder in order to perform any operation on it.
I was just able to implement the following command and it
works fine:
mailutil copy pwd
/"Sys Admin" "#driver.unix/pwd
/new"
(whereas mailutil copy ./"Sys Admin" "#driver.unix/new" produces "no such mailbox")
Thanks to Chris Wakelin, Dirk Essl, Steffen Kaiser, Jens Laas and Marcus Ruecker for speedy and comprehensive advice.
Thanks again, Anne
Anne M. Hammond - Systems / Network Administration - Tech-X Corp hammond_at_txcorp.com 303-974-1840
On Fri, 29 Sep 2006, Chris Wakelin wrote:
I think you need to specify the full path to the MBX file. Also, if it's INBOX, you'll need to rename it to something else first and rename it back afterwards.
So something like:
mailutil copy
pwd
/"Sys Admin" "#driver.unix/pwd
/new"should work.
Best Wishes, Chris
Anne Hammond wrote:
We converted from uw-imapd to dovecot but are still having problems with MBX mail folders.
The user can't access this "MBX mail folder":
[root@volt Resume's]# file "Sys Admin" Sys Admin: MBX mail folder [root@volt Resume's]# mailutil copy ./"Sys Admin" '#driver.unix/new' Can't open mailbox ./Sys Admin: no such mailbox [root@volt Resume's]# mailutil copy -debug -verbose./SysAdminSave '#driver.unix/new' Can't open mailbox ./SysAdminSave: no such mailbox
Could you tell me what I am doing wrong?
Anne M. Hammond - Systems / Network Administration - Tech-X Corp
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
Anne Hammond wrote:
We converted from uw-imapd to dovecot but are still having problems with MBX mail folders.
The user can't access this "MBX mail folder":
[root@volt Resume's]# file "Sys Admin" Sys Admin: MBX mail folder [root@volt Resume's]# mailutil copy ./"Sys Admin" '#driver.unix/new' Can't open mailbox ./Sys Admin: no such mailbox [root@volt Resume's]# mailutil copy -debug -verbose./SysAdminSave '#driver.unix/new' Can't open mailbox ./SysAdminSave: no such mailbox
Could you tell me what I am doing wrong?
I converted all our users now to dovecot using maildir. The migration is done by a quite big script, because we had no standards for the mailfolder The part converting mbx style mailboxes of the script follows here:
In this case, the INBOX file in the homedirectory of the user is converted to mbox and then to maildir
if [ -f /home/$MUSER/INBOX ]; then su - $MUSER -c "mailutil -verbose -debug" copy INBOX fictionmbox su - $MUSER -c "/root/mb2md -s /home/$MUSER/fictionmbox -R -d \ /var/mail/inboxes/$MUSER/" su - $MUSER -c "rm -f fictionmbox" fi
--
Anne M. Hammond - Systems / Network Administration - Tech-X Corp
regards dirk
participants (6)
-
Anne Hammond
-
Chris Wakelin
-
Dirk Essl
-
Ian Mortimer
-
Marcus Rueckert
-
Steffen Kaiser