Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th June 2012, 02:24
Bookworm Bookworm is offline
Junior Member
 
Join Date: Aug 2009
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default Weirdness in migration - courier to dovecot

Because of speed issues, during a rebuild, I moved a server from courier-imap to dovecot.

I migrated the dbispconfig database, then ran the upgrade.php script on the system. It correctly found Dovecot, (and I ran it again with the line '$conf['dovecot']['installed'] = true;' inserted after 231 [immedately after updateDbAndIni(); ] ) and supposedly everything would be great.

_however_ every time I touch an email account, it sets it up looking like this.

-rwxr--r-- 1 vmail vmail 47 Jun 23 18:13 courierimapsubscribed
drwx------ 2 vmail vmail 4096 Jun 23 18:13 cur
drwx------ 5 vmail vmail 4096 Jun 23 18:13 .Drafts
drwx------ 5 vmail vmail 4096 Jun 23 18:13 .Junk
drwx------ 5 vmail vmail 4096 Jun 23 18:13 Maildir
drwx------ 2 vmail vmail 4096 Jun 23 18:13 new
-rw------- 1 vmail vmail 46 Jun 23 18:13 .quotausage
drwx------ 5 vmail vmail 4096 Jun 23 18:13 .Sent
-rw-r--r-- 1 root root 77 Jun 23 18:13 .sieve
-rw-r--r-- 1 vmail vmail 149 Jun 23 18:13 .sieve.svbin
-rwxr--r-- 1 vmail vmail 23 Jun 23 18:13 subscriptions
drwx------ 2 vmail vmail 4096 Jun 23 18:13 tmp
drwx------ 5 vmail vmail 4096 Jun 23 18:13 .Trash

What's even worse is that it ends up _deleting the information stored in the Maildir folder_ . now I get to restore that from backup, and hope it doesn't happen -again-.

Notice that it created the Dovecot Maildir folder. Under which, it correctly placed the 'new' 'cur' and 'tmp' subfolders. it also created ALL OF THE COURIER FOLDERS AND FILES. Emphasis intended.

The only mention of 'courier' in the dbispconfig database is in the sys_datalog table, and in the server table.

Any suggestions how to stop ispconfig from creating double IMAP setups, as well as deleting emails when the email account is modified? The clean install system I used for another site yesterday isn't having any of these problems.

BW
Reply With Quote
Sponsored Links
  #2  
Old 24th June 2012, 17:43
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,036
Thanks: 841
Thanked 5,656 Times in 4,464 Posts
Default

Courier and dovecot use a different maildir layout, so you can not switch from courier to dovecot without changing the folder layout first. If you dont fo that, then ispconfig detects the faulty folders and removes them as they would not work for dovecot.


So before you change from couroier to dovecot, copy allfiles and folders from:

/var/vmail/domain.tld/user

to:

/var/vmail/domain.tld/user/Maildir

e.g. like this for each mailbox:

mkdir /var/vmail/domain.tld/user/Maildir
mv /var/vmail/domain.tld/user/* /var/vmail/domain.tld/user/Maildir/
mv /var/vmail/domain.tld/user/.* /var/vmail/domain.tld/user/Maildir/

You can ignore the errors that you get from the mv commands.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th June 2012, 04:54
Bookworm Bookworm is offline
Junior Member
 
Join Date: Aug 2009
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default

Till - that was done. The main complaint is that the 'upgrade.php' didn't actually get rid of courier. I had to do that by hand. So, what happened was that despite the fact that _dovecot_ worked, ISPConfig happily went on its way and nuked everything in the mail folder.

Oddly enough, I had to touch every user manually as well; otherwise, the passwords refused to work. So, if I hadn't caught it, I could have ended up deleting 590 gigabytes of email just to fix the password authentication.
Reply With Quote
  #4  
Old 25th June 2012, 09:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,036
Thanks: 841
Thanked 5,656 Times in 4,464 Posts
Default

Quote:
Till - that was done. The main complaint is that the 'upgrade.php' didn't actually get rid of courier.
Thats a script to update ispconfig. If you manually change the base configuration, then you have to ensure that your new setup is compatible with ispconfig and that you uninstalled software that is not required.

Quote:
Oddly enough, I had to touch every user manually as well; otherwise, the passwords refused to work. So, if I hadn't caught it, I could have ended up deleting 590 gigabytes of email just to fix the password authentication.
Never had to do that on any system that I migrated. So you must have done something wrong with your migration.

You might want to take a look at the migration tool that I posted several times already:

http://www.howtoforge.com/forums/sho...80&postcount=3
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
MySQL Error Nolan Installation/Configuration 13 27th November 2014 06:04
ISPConfig3 won't start after update Cracklefish Installation/Configuration 15 28th February 2012 15:11
Courier to Dovecot migration goebelmeier Installation/Configuration 8 17th May 2010 14:26
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 17:59
Postfix can't received email from exterior astra2000 Server Operation 5 18th October 2009 00:26


All times are GMT +2. The time now is 12:50.


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