Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th October 2005, 20:59
ovis ovis is offline
Junior Member
 
Join Date: Oct 2005
Posts: 28
Thanks: 0
Thanked 2 Times in 2 Posts
Question Mail Migration

Hello.


My existing mail server has a cyrus imap service where 10+ people
can read their webmail. My question to this forum is:

If i wand to utilize ISPconfig, how can i seed the system with mail of my current mail server ?

I did some research and came to this blog:

http://barnson.org/node/81

Does any one here can recomment a sane strategy for usage with ISPconfig.


Thanks in advance

Ovis
Reply With Quote
Sponsored Links
  #2  
Old 12th October 2005, 21:52
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

Quote:
Originally Posted by ovis
Hello.
My existing mail server has a cyrus imap service where 10+ people
can read their webmail. My question to this forum is:

If i wand to utilize ISPconfig, how can i seed the system with mail of my current mail server ?
ISPConfig is meant for "virgin" systems, so you might have a few problems with your migration.
If Cyrus supports Maildir, then you can continue using it, otherwise I'd recommend Courier-IMAP.
For the migration I think it would be the best to create new users in ISPConfig for your mailbox users, then copy over the existing emails to the new mailboxes and then delete the old users manually.
But of course this is untested, so if it's a production system then do this at your own risk!
__________________
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
  #3  
Old 12th October 2005, 22:16
ovis ovis is offline
Junior Member
 
Join Date: Oct 2005
Posts: 28
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Oke let me restate my question.


On the server where the ISPconfig tool is intended, now runs a hacked up system of my own making. To end this unmaintainable situation i have to rm -fr / and start with a virgin system. But offcource not before i had made a backup of : Webs DataBases and Mail.

The last one is the problem.

My question in the first place was how to backup or otherwise store the Cyrus Imap accounts on the old server and migrate them to the virgin ISPconfig server witch uses Courier Imap.

I understand that i have to define clients, webs and email users on the new system, but i havent got the slightes cleu about seeding my users with their original mail content and folders as they where used to in the old situation.

I really wonder how many of the people using the ISPconfig tool must have a previous situation with content in the form of web db and email and managed to migrate that to the new situation.

So what is the trick so i can get the mail + structure out of my old system into my new.


Thanks


Ovis
Reply With Quote
  #4  
Old 12th October 2005, 23:11
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

What's the structure of your mailboxes now? If each user has a Maildir with the directories cur, new and tmp in it, then you can try to simply copy them over to the new account.
__________________
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
  #5  
Old 13th October 2005, 00:23
ovis ovis is offline
Junior Member
 
Join Date: Oct 2005
Posts: 28
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko
What's the structure of your mailboxes now? If each user has a Maildir with the directories cur, new and tmp in it, then you can try to simply copy them over to the new account.
Mhh that the problem, I use qmail, it gets processed, and with a delivery agent, it ends up in e.g. /var/spool/imap/user/john/100.

Now mail is accessable by imap.

The only Maildirs used is by Qmail but only for a brief period when mail is being processed by the server to the Cyrus Imap system.

So one way to migrate mail from this situation would be a solution like:

http://migrationtool.sourceforge.net/

I get the mail out of the old system and transfer it in the new. And that exactly where i lack the knowlege how where and so on. So before i even atempt, i consulted this support area.

In short how can i go from:

/var/spool/imap/user/john/100.

To:

/home/www/web2/user/web2_info/Maildir

And than there's the issue of folders made by the users.
Its the stuff where headackes are made off


Thanks again for the help sofar

Ovis
Reply With Quote
  #6  
Old 13th October 2005, 01: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

Is /var/spool/imap/user/john/100 a directory where all emails are stored in single files, or is /var/spool/imap/user/john/100 a file that contains all emails of a user? I need more information about this to understand the current structure of the mailboxes.
__________________
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
  #7  
Old 13th October 2005, 13:14
SkIRmiS SkIRmiS is offline
Member
 
Join Date: Sep 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Read about: mb2md: convert mailbox to Maildir

Perl tool to do that: http://www.gerg.ca/hacks/mb2md/

Good luck!

P.S don't forget to do backup before experiment!
Reply With Quote
  #8  
Old 13th October 2005, 13:20
ovis ovis is offline
Junior Member
 
Join Date: Oct 2005
Posts: 28
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko
Is /var/spool/imap/user/john/100 a directory where all emails are stored in single files, or is /var/spool/imap/user/john/100 a file that contains all emails of a user? I need more information about this to understand the current structure of the mailboxes.
/var/spool/imap/user/john/ ---------------- Is the inbox
/var/spool/imap/user/john/100. ----------- Is one email
/var/spool/imap/user/john/101. ----------- Is another email
/var/spool/imap/user/john/Trash ---------- Is a folder
/var/spool/imap/user/john/Trash/64. ----- Is one email there
/var/spool/imap/user/mike/45. ------------- Other user only one email

And so on, the mails have numbers and there is also a database thats holding
information about if a mail is new etc. This is a general Cyrus Imap structure.

And that let me to believe that an external program has to transfer the mail from the still living server too a temporaly one. Then set up ISPConfig then retransfer the mail again.

I hoped people here had similar experieces, but apperently i am the only one that has used Cyrus
Reply With Quote
  #9  
Old 13th October 2005, 14:04
ovis ovis is offline
Junior Member
 
Join Date: Oct 2005
Posts: 28
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by SkIRmiS
Read about: mb2md: convert mailbox to Maildir

Perl tool to do that: http://www.gerg.ca/hacks/mb2md/

Good luck!

P.S don't forget to do backup before experiment!
Oke in my case i need a imap to imap kinda tool. There are a lot of them and i investigate them one by one. Today i ran an experiment with mozilla email tool.

I subscribed to both my original account and my ISPconfig test server.

I was not be able to move folders so i have to move email per folder and per user
wich is not a preferable situation.

So if there is any one that has experience to get mail out of an IMAP system into the new ISPconfig system, creating folders on the fly ill be glad to hear

Gr ovis
Reply With Quote
  #10  
Old 13th October 2005, 16:01
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

Quote:
Originally Posted by ovis
/var/spool/imap/user/john/ ---------------- Is the inbox
/var/spool/imap/user/john/100. ----------- Is one email
/var/spool/imap/user/john/101. ----------- Is another email
/var/spool/imap/user/john/Trash ---------- Is a folder
/var/spool/imap/user/john/Trash/64. ----- Is one email there
/var/spool/imap/user/mike/45. ------------- Other user only one email

And so on, the mails have numbers and there is also a database thats holding
information about if a mail is new etc. This is a general Cyrus Imap structure.

And that let me to believe that an external program has to transfer the mail from the still living server too a temporaly one. Then set up ISPConfig then retransfer the mail again.

I hoped people here had similar experieces, but apperently i am the only one that has used Cyrus
Courier uses the following structure:
/var/www/webxx/user/webxx_<username>/Maildir/cur <-- folder that holds emails in single files
/var/www/webxx/user/webxx_<username>/Maildir/new <-- folder that holds emails in single files
/var/www/webxx/user/webxx_<username>/Maildir/tmp <-- folder that holds emails in single files

Looks like this is not compatible with Cyrus-Imap's structure...
__________________
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
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
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 08:27
Read but not send mail briggers HOWTO-Related Questions 24 7th April 2006 19:22
configure as a secondary mail server xma General 6 15th February 2006 13:46
internal domain error with mail matehortua Installation/Configuration 5 16th October 2005 18:31
Mail Configuration mphayesuk General 1 12th September 2005 13:16


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


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