Mail upgrade problems

I'm having problems upgrading my previous mail accounts. 10.5.8 -> 10.6.
Migration says it can't find any data to migrate in the console.

It looks like all my accounts can receive email and send email. However all the messages and folders created on their imap accounts are lost.

When I manually run the migrate script it says it can't find the cvt_cyrusdb file. However, I can find it.
Here is the script i'm running

sudo /usr/libexec/dovecot/migrate maildata.pl —moveMail 0 —cyrusBin "/Volumes/Untitled/usr/bin/cyrus/bin" --database "/Volumes/Untitled/var/imap" --sourceSpool "/Volumes/Untitled/var/spool/ imap" --targetSpool "/var/spool/imap/dovecot/mail"

The Untitled Volume is a clone of the original 10.5.8 server.
Currently I'm booting of it with my previous settings and mail does work.

My only work around that I can think of is to go to each computer and save all their emails and folders onto their mac, upgrade the server and then copy back the folders and email. I hoping to avoid this unless there is no other options.

Mac Book, Mac OS X (10.6)

Posted on Sep 5, 2009 6:00 PM

Reply
7 replies

Sep 5, 2009 8:51 PM in response to Mango Buzz

Looks like there may be a problem with the apple supplied script.

sudo /usr/libexec/dovecot/migrate maildata.pl —moveMail 0 —cyrusBin "/Volumes/Untitled/usr/bin/cyrus/bin" --database "/Volumes/Untitled/var/imap" --sourceSpool "/Volumes/Untitled/var/spool/ imap" --targetSpool "/var/spool/imap/dovecot/mail"

I had to run it like this

sudo /usr/libexec/dovecot/migrate maildata.pl --cyrusBin "/Volumes/Untitled/usr/bin/cyrus/bin" --database "/Volumes/Untitled/var/imap" --sourceSpool "/Volumes/Untitled/var/spool/ imap" --targetSpool "/var/spool/imap/dovecot/mail"

note the (moveMail 0) is removed.

I'm running it now and it seems to be copying the files. I'll update the post if it works

Sep 8, 2009 12:22 PM in response to Mango Buzz

I've got the same problem with mail being missing especially out of subfolders (although not all, seems very strange).

As a novice to terminal, I'd appreciate a little more of a "tutorial"-type answer as to how to straighten out this mail issue. I also understand then there is a date issue with the received mail.

Is this something that Apple is likely to fix with some kind of more comprehensive instruction?

Cheers

Sep 14, 2009 5:40 PM in response to Brian Guam Engineer

Instructions were provided in the Upgrade and Migration guide:
http://manuals.info.apple.com/enUS/Migrationv10.6.pdf

Detailed instructions for manual mail migration are provided starting on p. 41. On p. 18 of the guide – upgrading from 10.5 – you may note the following text:
"Note: The Mail service is disabled after upgrading or migrating your server, to give you
the opportunity to inspect mailboxes and manually migrate mailboxes that may have
been on previously unmounted volumes."

If the provided instructions are inadequate, please offer suggestions as to how it may be improved.

Sep 24, 2009 2:06 PM in response to Mango Buzz

Mango Buzz wrote:

When I manually run the migrate script it says it can't find the cvt_cyrusdb file. However, I can find it.
Here is the script i'm running

sudo /usr/libexec/dovecot/migrate maildata.pl —moveMail 0 —cyrusBin >"/Volumes/Untitled/usr/bin/cyrus/bin" --database "/Volumes/Untitled/var/imap" --sourceSpool >"/Volumes/Untitled/var/spool/ imap" --targetSpool "/var/spool/imap/dovecot/mail"


There seems to be an error in the printed (pdf) manual:

sudo /usr/libexec/dovecot/migrate maildata.pl —moveMail 0 —cyrusBin "/Volumes/Untitled/usr/bin/cyrus/bin" --database "/Volumes/Untitled/var/imap" --sourceSpool "/Volumes/Untitled/var/spool/ imap" --targetSpool "/var/spool/imap/dovecot/mail"

It should be:

sudo /usr/libexec/dovecot/migrate maildata.pl —moveMail 0 --cyrusBin "/Volumes/Untitled/usr/bin/cyrus/bin" --database "/Volumes/Untitled/var/imap" --sourceSpool "/Volumes/Untitled/var/spool/ imap" --targetSpool "/var/spool/imap/dovecot/mail"

Note the double dashes in --cyrusBin.

It took me about 3 hours to catch that mistake.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mail upgrade problems

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.