Currently Being ModeratedJun 24, 2012 10:27 AM (in response to zzCRP)
Currently Being ModeratedJun 25, 2012 2:04 AM (in response to davidh)
Thanks, I am familiar with that document, although if I understand it correctly, it basically suggests to let a perl script handle the migration.
I like doing things manually in order to have everything under control, so I was hoping to have some insight from other people that have done the migration and/or have deeper knowledge of dovecot than myself.
Currently Being ModeratedJul 14, 2012 9:02 AM (in response to MoisesRuiz)
I got here using Google because I'm embarking on a similar quest. I found this before which may be of your interest:
Currently Being ModeratedJul 16, 2012 7:08 AM (in response to ajisolpa)
Thanks for the link but I'm not very comfortable with the command line and although I understand I couldn't make it work. Could you provide more detailed instructions on how you did it?
When I do a normal upgrade from SLS, the Mail service seems to be successfully migrated but EVERYTHING else is all screwed up. DNS is not properly working, Open Directory is off, Wikis are not even working so instead I tried doing this:
- Imaged my server to an external partition and upgraded it to Lion Server (DNS is screwed up but Mail's information seems ok although I don't think is fully functional because DNS and OD are all screwed up)
- Installed and reconfigured a brand new Lion server with exactly the same DNS
- Archived and restored the SLS Open Directory to the new Lion Server
- Turned on and configured Mail in the new Lion server for the same domain
- Turned off Mail on the Lion server and copied from migrated Lion Server: /var/spool/imap/dovecot/mail to the brand new Lion Server
- I figured that since OD is restored with the same users and copying the db from the migrated Lion server will keep the same permissions then my procedure would work but it obviously didn't.
Currently Being ModeratedJul 25, 2012 10:27 AM (in response to Moises R - OMTBA)
What I did with moderate success:
- -- A backup from the SL server installation I had + another separate backup of /var/spool/imap/dovecot directory.
- -- Some other backups, for example Server Admin prefs, OD, Shared Files, etc.
- -- Since the server was a mess, formatted the disk and installed Lion Server from scratch.
- -- In my case, there was a mess with users and the way Mail was handled with virtual aliases, etc. I read about how the dovecot directory worked from the link provided before and decided to follow a similar approach, with some issues
- -------- Created the new users in Lion Server and used the Server app to get into the Directory app and find the new user's GUIDs (about 30 users so it took a while but weren't too many).
- -------- Looked up the old GUID for each user and pulled the corresponding mail directory from /var/spool/imap/dovecot/mail changing the directory name with the new name and
- -------- IMPORTANT: also changing the owner as suggested on the link (i.e., _dovecot=read/write, everyone=none). These permission modifications need to be applied recursively, which is easier using terminal.
- -- The issue with this method is that it seems to, sometimes(?), update the file modification dates, which in turn may cause Mail.app on OS X and on iOS Mail to show incorrect dates for each e-mail on the mail list.
- -------- I'm still reading about how to correct this issue I found with a particularly huge Inbox (50K+ mails, around 50GB, yikes).
- -------- In my case the rest of the config was pretty simple, I used the Server app the setup DNS and Server Admin + modified postfix config file to suit some other requirements.
I hope I'm staying on topic on this thread and that my experience can be of help, in case others run into the same issues.
Message was edited by: ajisolpa for some reason post formatting does not show up.