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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th April 2006, 11:01
Brenton Brenton is offline
Member
 
Join Date: Jul 2005
Posts: 68
Thanks: 2
Thanked 2 Times in 1 Post
Default IMAP question - Moving servers and mail.

Hi

I've moved all my domains to a new server (Perfect Ubuntu 5.10) except for one that is still on my old server. The client uses IMAP exclusively so I need to migrate all his existing mail to the new server. Can this be done?

I've Googled extensively and more confused than ever.

Any pointers will be greatly appreciated.

Regards
Brenton
Reply With Quote
Sponsored Links
  #2  
Old 7th April 2006, 11:28
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,388
Thanks: 833
Thanked 5,485 Times in 4,317 Posts
Default

Does both servers use Maildir?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th April 2006, 12:23
Brenton Brenton is offline
Member
 
Join Date: Jul 2005
Posts: 68
Thanks: 2
Thanked 2 Times in 1 Post
Default

Hi till

I'm not sure, this is the info I have

The old server was running virtual hosting using mysql and the user mail directory is:
/srv/mail/vhosts/domain.com/someuser@domain.com/
content of directory is:
Code:
drwx------  9 postfix postfix  304 Jul 25  2005 .
drwx------  3 postfix postfix   96 Jun  8  2005 ..
drwx------  6 postfix postfix  224 Jul 25  2005 .Drafts
drwx------  6 postfix postfix  224 Jul 25  2005 .Sent
drwx------  6 postfix postfix  256 Jun  8  2005 .Trash
drwx------  2 postfix postfix   48 Jul 25  2005 courierimapkeywords
-rw-r--r--  1 postfix postfix   36 Jun  8  2005 courierimapsubscribed
-rw-r--r--  1 postfix postfix  688 Jul 25  2005 courierimapuiddb
drwx------  2 postfix postfix 1168 Jul 25  2005 cur
drwx------  2 postfix postfix 3312 Mar 22 19:48 new
drwx------  2 postfix postfix   48 Mar 22 19:48 tmp
On the ISPConfig server it's:
/var/www/www.domain.com/user/web7_someuser/Maildir/
content of directory is:
Code:
drwx------  5 web7_someuser web7 4096 2006-03-21 01:00 .
drwxr-xr-x  4 web7_someuser web7 4096 2006-03-21 00:49 ..
-rw-r--r--  1 web7_someuser web7   79 2006-03-21 11:00 courierpop3dsizelist
drwx------  2 web7_someuser web7 4096 2006-03-21 11:00 cur
drwx------  2 web7_someuser web7 4096 2006-03-21 11:00 new
drwx------  2 web7_someuser web7 4096 2006-03-21 11:00 tmp
Some I'm assuming that they are both running Maildir.

I've been looking at imapsync but am still a little confused. I've been reading this thread: http://www.howtoforge.com/forums/showthread.php?t=835

Regards
Brenton
Reply With Quote
  #4  
Old 7th April 2006, 14:29
Brenton Brenton is offline
Member
 
Join Date: Jul 2005
Posts: 68
Thanks: 2
Thanked 2 Times in 1 Post
Default

Okay, after playing around with some testing domains I found that this works.

Code:
imapsync --host1 xxx.xxx.xxx.xxx --user1 user@domain.com --password1 xxxxxxxx \
--host2 yyy.yyy.yyy.yyy --user2 web6_username --password2 xxxxxxxx
where:
xxx.xxx.xxx.xxx is the older server IP number and
yyy.yyy.yyy.yyy is the new (ISPConfig - Ubuntu 5.10) server IP number

user@domain.com is the user login on the old server and
web6_username is the user login on the new server.

I tried IP numbers rather that the domain (mail.domain.com) as the DNS records have already been updated to point to the new server on my test accounts/domains, but not yet on the client domain. This will allow me to apply for DNS updates and migration over the weekend while client is not inclind to check mail.

I've not done the client mail yet, as he has a number of custom folders and need to see if those will be moved across as well.

But for a basic migration, the above worked fine for me. I hope this works helps somebody else.

Regards
Brenton
Reply With Quote
  #5  
Old 7th April 2006, 17:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,388
Thanks: 833
Thanked 5,485 Times in 4,317 Posts
Default

As both servers are using courier Imap, it might also work if you simply copy the maildir content to the new server and change the owner to the email user.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 7th April 2006, 19:53
Brenton Brenton is offline
Member
 
Join Date: Jul 2005
Posts: 68
Thanks: 2
Thanked 2 Times in 1 Post
Default

Hi till.

I've used imapsync and it has worked, all mail was copied with no visible error. Will have to wait and see what the client says.

I did think of just doing a straight copy, but I was a little worried that the file naming convention between the two servers are very diferent.

eg:
new server
Code:
1144425372.M273522P31666V0000000000000301I0013937C_538.hostname.domainname.com,S=1588:2,S
old server
Code:
1144172658.V302I282df.hostname:2,S
I don't know enough about courier to play to much with a live server.

Thank you very much for your support.

Brenton
Reply With Quote
  #7  
Old 9th May 2010, 19:02
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,265
Thanks: 80
Thanked 24 Times in 20 Posts
Default

trying the same, but synchronizing to google apps:

imapsync --host1 85.214.146.68 --user1 postmaster@mydomain.de --password1 Pass1 \ --host2 imap.gmail.com --user2 mygoogleappslogin --password2 Pass2 --port2 993 --ssl2

and all that happens is this:

--host2 option must be used, run /usr/bin/imapsync --help for help

any ideas?
Reply With Quote
  #8  
Old 10th May 2010, 14:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

If you write this command in one line, you must remove the backslash (\) from it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 10th May 2010, 16:32
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,265
Thanks: 80
Thanked 24 Times in 20 Posts
Default

how silly of me :-( that was the problem indeed.

Now I get this: Host imap.gmail.com says it has NO CAPABILITY for AUTHENTICATE CRAM-MD5

I then tried --authmech2 PLAIN and after that failed too --authmech2 LOGIN

- none works. Anyone knows what authmech to try with GMAIL's IMAP servers?
Reply With Quote
  #10  
Old 12th May 2010, 18:13
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,265
Thanks: 80
Thanked 24 Times in 20 Posts
 
Default

sorry guys, any more help on this?
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
This is the Postfix program <postmaster> edge Installation/Configuration 14 13th March 2006 15:50
Postfix mail is held in queue indefinitely... squallbsr Server Operation 9 15th January 2006 19:13
2 mail servers? thedude General 2 15th August 2005 16:34


All times are GMT +2. The time now is 11:34.


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