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 18th August 2013, 12:22
vert vert is offline
Junior Member
 
Join Date: Aug 2013
Location: Denmark
Posts: 5
Thanks: 2
Thanked 1 Time in 1 Post
Default Migration of Mail from single server set up to multi server set up

This thread is touching the subject, I'm just not entirely sure that this is the way to go, as it seems the OP took a deroute: http://www.howtoforge.com/forums/showthread.php?t=62601

Scenario:
I have a single server running web, mail, db and dns. I want to migrate the mail settings and content to a second server, thus creating a multi server set up.

The second server has been set up fresh with the same ISPconfig and OS version, every mail service has been installed and the server is configured as a slave to the original single server.

Question:
What is the best practice for migrating mail configuration and content to the new server?

In a bit broader perspective, I plan on moving the DNS to a separate server - how should one deal with migrating services between individual servers in a multiserver set up?

Thanks in advance for input!
Reply With Quote
Sponsored Links
  #2  
Old 21st August 2013, 10:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

1) Install ispconfig on the second server in expert mode and let it join your master server.
2) The new server will get server_id = 2 in the server table if its the second one, this id is important for the next steps. Make a backup of the dbispconfig database on the master and slave server.
3) edit all records in the tables were the name starts with mail_* or spamfilter* on the master server that have a column server_id, change the id in these fields from 1 to 2 to assign them to your new server.
4) Run the resync tool for the "mail" accounts in ispconfig, you find it in the tools menu. This will create new mailboxes on the slave server.
5) Copy everything in /var/vmail from the master server to the slave server. Ensure that the permissions and ownerships of the files and folders are preserved.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following 2 Users Say Thank You to till For This Useful Post:
almere (21st August 2013), vert (23rd August 2013)
  #3  
Old 23rd August 2013, 13:03
vert vert is offline
Junior Member
 
Join Date: Aug 2013
Location: Denmark
Posts: 5
Thanks: 2
Thanked 1 Time in 1 Post
 
Default

Quote:
Originally Posted by till View Post
1) Install ispconfig on the second server in expert mode and let it join your master server.
2) The new server will get server_id = 2 in the server table if its the second one, this id is important for the next steps. Make a backup of the dbispconfig database on the master and slave server.
3) edit all records in the tables were the name starts with mail_* or spamfilter* on the master server that have a column server_id, change the id in these fields from 1 to 2 to assign them to your new server.
4) Run the resync tool for the "mail" accounts in ispconfig, you find it in the tools menu. This will create new mailboxes on the slave server.
5) Copy everything in /var/vmail from the master server to the slave server. Ensure that the permissions and ownerships of the files and folders are preserved.
Thank you very much!
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
ISPConfig3 mail doesn't work pehden Installation/Configuration 20 9th December 2013 14:05
Local mail server - final touch Alexhor Installation/Configuration 4 12th April 2012 22:33
mail recipient linux_red Installation/Configuration 6 9th March 2012 14:24
installing squirrelmail on Debian with ispconfig3 saco721 Installation/Configuration 18 1st April 2011 17:57
Postfix problem and few questions Gimly Installation/Configuration 12 7th July 2009 16:27


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


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