Am Montag, 24. August 2015, 16:29:55 schrieb Mogens Melander: > It should be possible, using the cyrus admin account. But I'm > sure there will be something about this in the imapsync docs. cyrus <-> imapsync mini HOWTO =========================== To migrate your postboxes from one to another cyrus or IMAP host by IMAP: in your imapd.conf set a cyrus admin user if not done til now: admins: cyrus and make sure it has a password / is available by cyrus auth subsys as other cyrus users. Use imapsync with --authuser1 /source host) --authuser2 (target host) instead of the mailbox account users: ---user[1|2] after experiments i have found that the following additional imapsync parameters could be helpful in a site migration scenario: --addheader -> this makes sure that the timestamps of the mail is the original one if all your copied messages are shown with a new timestamp / date from "today" in the target mailbox. imapsync uses the timestamps from the original mail headers instead which are "much closer" the original date. --usecache -> could speed up the migration significantly. --timeout -> set this higher if you get timeout problems. The nice thing is that you can restart the whole process anytime again later if the migration stops or connections breaks. You may use this script as a starting point. It is a bit more generic as it allows / accepts different account names on source / target site (may be simplified further): #!/bin/bash ##################################### # sync old imap account with new one # on syndicat.com mailhost # (c) 2015 Niels Dettenbach # <nd@xxxxxxxxxxxx> # GPL licensed ##################################### usage="usage: imapsync_intrans <oldhost> <oldadminuser> <oldadminpassword> <newadminuser> <newadminpass> <newhost>" imapsync=`which imapsync` if [ $imapsync ] then if [ $5 ] then echo "start IMAP sync $2 <-> $4:" $imapsync \ --host1 $1 --authuser1 $2 --password1 $3 \ --host2 $6 --authuser2 $4 --password2 $5 \ --addheader --ssl1 --timeout 15 else echo $usage fi else echo "no imapsync found!" fi -- --- Niels Dettenbach Syndicat IT & Internet http://www.syndicat.com PGP: https://syndicat.com/pub_key.asc ---
Attachment:
signature.asc
Description: This is a digitally signed message part.
---- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus