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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th February 2010, 10:32
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default I need to migrate emails from an old to a new server

Hi to everybody,
I'm ready with my ISPConfig mailserver.
Now I need to copy emails from the old mailserver to the new one.

Is enough just copying files from the old /var/vmail to the new one?

Thanks
Michele
Reply With Quote
Sponsored Links
  #2  
Old 12th February 2010, 12:08
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,384 Times in 4,231 Posts
Default

Quote:
Is enough just copying files from the old /var/vmail to the new one?
yes, just copy the whole directory tree. make sure that the files are still owned by user and group vmail afetr you copied them.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 12th February 2010, 13:18
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

thanks Till for your answer.

Basically I've created before in the new server all the domains and email addresses, then I've canceled in /var/vmail and copied it from the old one.
At the end chown -R vmail:vmail /var/vmail and it's working.

Now one question: to make the quota working, I've to setup the quota in ISPConfig for all of them again... is there a faster way to do it?

Thanks
Michele
Reply With Quote
  #4  
Old 15th February 2010, 13:31
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,384 Times in 4,231 Posts
Default

The quota files are stored in the maildirs, so no need to redo it on the new server as you copied all email quota info together with the maildirs. For email, Linux quota is not used.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 17th February 2010, 11:00
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Hi Till,
what do you mean Linux quota is not used?
I'm copying across the whole /var/vmail, but of course the old file /var/vmail/domain/user/maildirsize has the old configuration of the quota... so I notice that if I setup in ISPConfig the quota again, that file will be overwrite with the new quota configuration...
Is it correct or am I wrong?

Thanks
Michele
Reply With Quote
  #6  
Old 17th February 2010, 11:08
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,384 Times in 4,231 Posts
Default

Quote:
Is it correct or am I wrong?
Thats correct. But if you moved a setup, you must have mocved the ispconfig database to the new server as well, so everything is in sync. If you did not move the ispconfig database, you will have to recreate all accounts and passwords of course.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 17th February 2010, 11:40
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
 
Default

In the old server I don't have ISPConfig.
I have it just on the new one.

So what I'm doing is
1) in the new server I'll create the scenario (domains and emails)
2) I move the /var/vmail/domain from the old to the new one
3) I setup the correct permission on /var/vmail/domain
4) In the ISPconfig I'll setup the quota

That's it... (I hope)
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
ISPConfig 3 - CentOS 5.4 - SSL Problems!?! owainbaber Installation/Configuration 4 26th July 2011 17:12
Centos5.4/ISPConfig 3--Virtual site not working MichaelCaditz Installation/Configuration 25 25th March 2011 11:37
Email problem 'Cannot set my user or group id.' (using ISPConfig 3 + OpenSuSE 11.2) urosm Installation/Configuration 5 19th June 2010 22:41
procmail problem - mail delivery Lobanak Installation/Configuration 4 1st March 2009 22:24
Can't start apache Musty Server Operation 12 9th March 2008 13:58


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


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