#1  
Old 23rd June 2012, 00:24
ruvil ruvil is offline
Junior Member
 
Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing mail software?

Hi

I have a server with ubuntu 12.04 and the latest version of ISPconfig(through upgrade).

I would like to replace my old courier installation with dovecot - is this possible without destroying my current ispconfig installation? Should i be extra careful when doing this?
Reply With Quote
Sponsored Links
  #2  
Old 24th June 2012, 11:21
Bookworm Bookworm is offline
Junior Member
 
Join Date: Aug 2009
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default

If you use imapsync to sync between the two servers, it's pretty painless - although the end users will have to rebuild their local mailboxes.

If you do what I did (598 gigabytes of email is just a WEE bit difficult to imapsync) and move the folders themselves, you'll have to get the courier-dovecot-migrate.pl script.

Look at my post (close to this one).

I upgraded the existing system to the latest version of ISPConfig, then created a new version on the new machine. The old was running courier, the new dovecot. I did a database dump of the dbispconfig, moved it to the new machine, then overwrote the dbispconfig database on the new box. I then ran the update.php from the same installer, told it dovecot, and let it rip. (This came directly from a post by Till). It still left three mentions of 'courier' in the system.

If you clear those 'courier' mentions with phpmyadmin, you can then move the /var/vmail/<domain>/user/* files into the /var/vmail/<domain>/user/Maildir/* file structure. (You'll have to make the Maildir if it doesn't show up automatically)

Once that's done, you'll run the migrate script like so.

./courier-dovecot-migrate.pl --to-dovecot --recursive --convert --overwrite /var/vmail/<domain>

(The script will automatically fix the file ownership issues that show up if you're using 'root' to create the Maildir)

Once you've done this, and it passes correctly (run it without the --convert first, as a test), _delete the courierimap* files from the folders_. This will probably take some scripting, or by hand work, but I found that Thunderbird, at least, was trying to read both the Dovecot subscriptions file AND the courier imap files, and ending up with phantom folders.

KEEP GOOD BACKUPS. Better yet, keep your old hard drive handy to plug into the new machine in case it does what happened to me, which was that updating the name of a couple of users caused the system to wipe the user email directories. Sixty-eight gigabytes then had to be recopied. (that was before removing 'courier' from the database. ) Yes, I had the old drive handy - I wasn't that stupid.
Reply With Quote
  #3  
Old 24th June 2012, 16:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,573
Thanks: 792
Thanked 4,980 Times in 3,901 Posts
Default

Quote:
Originally Posted by ruvil View Post
Hi

I have a server with ubuntu 12.04 and the latest version of ISPconfig(through upgrade).

I would like to replace my old courier installation with dovecot - is this possible without destroying my current ispconfig installation? Should i be extra careful when doing this?
There is a migration tool and guide available for that. See attachment.
Attached Files
File Type: zip courier_to_dovecot.zip (2.2 KB, 457 views)
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 3rd November 2013, 20:19
wiss wiss is offline
Member
 
Join Date: Oct 2010
Posts: 64
Thanks: 2
Thanked 2 Times in 2 Posts
 
Default

Is there any way to all clients not re-download all messages after mail conversion?

Thx.
__________________
Reparacion ordenadores | Reparacion portatiles
Pd: Sorry for my english...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mail recipient linux_red Installation/Configuration 6 9th March 2012 14:24
Sendig mail Error fisherofer Installation/Configuration 12 30th November 2011 07:56
procmail can't write Hellbound General 27 8th June 2009 21:51
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
Problem with dcc-client installation (Postfix) swap-as Installation/Configuration 9 18th September 2008 20:47


All times are GMT +2. The time now is 21:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.