Addition/Migrate.to.New.iRedMail.Server
From iRedMail
(→LDAP: migrate mail accounts) |
|||
| Line 15: | Line 15: | ||
* Export mail accounts from LDAP on OLD mail server. | * Export mail accounts from LDAP on OLD mail server. | ||
| - | Normally, LDAP data can be exported into LDIF format. Here's backup/export script: | + | Normally, LDAP data can be exported into LDIF format. Here's backup/export script: http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Backup |
| - | http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Backup | + | |
| - | + | '''Note''': | |
| - | + | * There might be some changes in LDAP schema, please read all upgrade tutorials for your running iRedMail version, then apply LDAP data related upgradings. For example: | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | * There might be some changes | + | |
** http://iredmail.org/wiki/index.php?title=Upgrade/iRedMail/0.5.1-0.6.0#Add_missing_values | ** http://iredmail.org/wiki/index.php?title=Upgrade/iRedMail/0.5.1-0.6.0#Add_missing_values | ||
** http://iredmail.org/wiki/index.php?title=Upgrade/iRedMail/0.6.1-0.7.0#Add_missing_value_for_mail_users | ** http://iredmail.org/wiki/index.php?title=Upgrade/iRedMail/0.6.1-0.7.0#Add_missing_value_for_mail_users | ||
| - | + | * You can find all upgrade tutorials of iRedMail here: http://www.iredmail.org/doc.html#upgrade_tutorial | |
| - | + | ||
== MySQL: Migrate mail accounts == | == MySQL: Migrate mail accounts == | ||
Revision as of 12:48, 14 April 2012
Contents |
TO BE CONTINUED.
Please try it on a test server first, if it works well, then try it on product server.
Since new iRedMail server will install same components as old server, you can choose what data you want to migrate. The major data are mail accounts, user mailboxes, roundcube webmail database, Policyd database, Amavisd database.
LDAP: migrate mail accounts
Steps to migrate LDAP mail accounts:
- Setup a new server with the latest iRedMail, and make iRedAdmin-Pro-LDAP work as expected.
- Export mail accounts from LDAP on OLD mail server.
Normally, LDAP data can be exported into LDIF format. Here's backup/export script: http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/Backup
Note:
- There might be some changes in LDAP schema, please read all upgrade tutorials for your running iRedMail version, then apply LDAP data related upgradings. For example:
- You can find all upgrade tutorials of iRedMail here: http://www.iredmail.org/doc.html#upgrade_tutorial
MySQL: Migrate mail accounts
All mail accounts are stored in database vmail by default, to migrate mail accounts, just simply export this database on old server, then import it on new server.
Migrate mailboxes (in maildir format)
- Simply copy all mailboxes (in maildir format) to new iRedMail server.
WARNING: please make sure maildir path which stored/configured in LDAP will match the real path on file system, so that mail clients can find them.
Important Notes for MySQL backend
This section is applicable to iRedMail-0.7.3 and earlier versions, with MySQL backend. Not required in iRedMail-0.7.4 and later versions.
Please refer to this section for more details: Store realtime mailbox quota usage in seperate SQL table
Migrate Roundcube webmail data
- Export/import roundcube webmail database, and upgrade database to work with new version of Roundcube.
http://trac.roundcube.net/wiki/Howto_Upgrade
Migrate Policyd database
Policyd database stores blacklist/whitelist, throttling, etc. To migrate its data, simply export this database on old server, then import it on new server.
