From 1bee33653d7355333f73be6c1d6eadc4b29806ea Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Wed, 4 Feb 2015 12:51:22 +0800 Subject: [PATCH] Add comment about how to get full maildir path. --- html/migrate.to.new.iredmail.server.html | 22 +++++++++++++++++--- migrations/migrate.to.new.iredmail.server.md | 17 ++++++++++++++- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/html/migrate.to.new.iredmail.server.html b/html/migrate.to.new.iredmail.server.html index f004b97f..2e59d620 100644 --- a/html/migrate.to.new.iredmail.server.html +++ b/html/migrate.to.new.iredmail.server.html @@ -66,9 +66,11 @@ mail clients, please follow this tutorial: How to
  • 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 find scripts here to apply all required changes. - Here are all upgrade tutorials for iRedMail.

    +

    Notes:

    +

    MySQL/PostgreSQL: Migrate mail accounts

    All mail accounts are stored in database vmail by default, to migrate mail accounts, you can simply export this database on old server, then import it @@ -129,6 +131,20 @@ structure related changes. Check upgrade tuto

    WARNING: please make sure maildir path stored in SQL/LDAP matches the mailbox path on file system, so that mail clients can find imported emails.

    + +
    mysql> USE vmail;
    +mysql> SELECT CONCAT(storagebasedirectory, '/', storagenode, '/', maildir) FROM mailbox WHERE username='user@domain.com';
    +
    + + +
    $ ldapsearch -x -D 'cn=Manager,dc=xx,dc=xx' -b 'o=domains,dc=xx,dc=xx' -W "(mail=user@domain.com)" homeDirectory
    +
    +

    Migrate Roundcube webmail data