From 47cb68d0736f968fef840acd026d97d3078b7881 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Fri, 6 May 2016 10:11:31 +0800 Subject: [PATCH] Mention how to migrate amavisd/iredapd/iredadmin databases, and recalculate mailbox quota after migration. --- .../1-migrate.to.new.iredmail.server.md | 16 ++++++++++++++-- html/migrate.to.new.iredmail.server.html | 14 ++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/en_US/migrations/1-migrate.to.new.iredmail.server.md b/en_US/migrations/1-migrate.to.new.iredmail.server.md index ecd09de9..a8d4c6b4 100644 --- a/en_US/migrations/1-migrate.to.new.iredmail.server.md +++ b/en_US/migrations/1-migrate.to.new.iredmail.server.md @@ -148,8 +148,14 @@ $ ldapsearch -x -D 'cn=Manager,dc=xx,dc=xx' -b 'o=domains,dc=xx,dc=xx' -W "(mail ## Migrate Roundcube webmail data -* Export/import roundcube webmail database, and upgrade database to work with new version of Roundcube. - +* Export/import roundcube webmail database, and upgrade database to work with + new version of Roundcube. + +Reference: + +## Migrate Amavisd, iRedAPD, iRedAdmin databases + +Export those database on old server, then import them on new server. ## Migrate DKIM keys @@ -161,6 +167,12 @@ permission `0600`. If you prefer generating new DKIM keys on new server, don't forget to update DNS records for mail domain names. +## Post-migration + +After migration, please recalculate mailbox quota by following this tutorial: + +* [Force Dovecot to recalculate mailbox quota](./recalculate.mailbox.quota.html) + # References * [Password hashes](./password.hashes.html) diff --git a/html/migrate.to.new.iredmail.server.html b/html/migrate.to.new.iredmail.server.html index f63cd07f..da412d32 100644 --- a/html/migrate.to.new.iredmail.server.html +++ b/html/migrate.to.new.iredmail.server.html @@ -23,7 +23,9 @@
  • MySQL/PostgreSQL: Migrate mail accounts
  • Migrate mailboxes (Maildir format)
  • Migrate Roundcube webmail data
  • +
  • Migrate Amavisd, iRedAPD, iRedAdmin databases
  • Migrate DKIM keys
  • +
  • Post-migration
  • References
  • @@ -175,9 +177,12 @@ mysql> SELECT CONCAT(storagebasedirectory, '/', storagenode, '/', maildir) FR

    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
    • +
    • Export/import roundcube webmail database, and upgrade database to work with + new version of Roundcube.
    +

    Reference: http://trac.roundcube.net/wiki/Howto_Upgrade

    +

    Migrate Amavisd, iRedAPD, iRedAdmin databases

    +

    Export those database on old server, then import them on new server.

    Migrate DKIM keys

    Amavisd will read DKIM keys and sign outgoing emails. DKIM keys are stored under /var/lib/dkim by default, you can copy all keys under this directory to @@ -185,6 +190,11 @@ new server, and make sure they have correct file owner amavis:amavis0600.

    If you prefer generating new DKIM keys on new server, don't forget to update DNS records for mail domain names.

    +

    Post-migration

    +

    After migration, please recalculate mailbox quota by following this tutorial:

    +

    References