I would like to migrate about 600 mailboxes from a debian box running
courier-imapd to another debian box running cyrus 2.2.
On the source machine the passwords of users are stored in
/etc/shadow, so I have no way of knowing the password for every user. I
would like to authenticate as an admin user with --authuser1 option of
imapsync to be authorized as any user, so I try this:
max-test:/# imapsync --host1 source.host.com --user1 a_username
--authuser1 root --host2 dest.host.com --user2
a_username@dest.host.com --authuser2 cyrus
$RCSfile: imapsync,v $ $Revision: 1.182 $ $Date: 2006/08/01 23:07:42 $
Mail::IMAPClient version used here is 2.2.9
will try to use PLAIN authentication on host1
will try to use PLAIN authentication on host2
>From imap server [source.host.com] port [143] user [a_username]
To imap server [dest.host.com] port [143] user [a_user@dest.host.com]
What's the password for
root@source.host.com? xxxxxx
What's the password for
cyrus@dest.host.com? xxxxxx
Banner : * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION]
Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See
COPYING for distribution information.
source.host.com: no support for AUTHENTICATE PLAIN, using LOGIN
Error login : [source.host.com] with user [a_user] : 3 NO Login failed.
When prompted, I inserted the passwords for root and cyrus
respectively, and authentication fails. If, on the other hand, I insert
the password for the users (--user1 and --user2) everything works
nicely.
My questions are as follows.
1. How can I authenticate to courier as an admin user?
2. How do I authenticate to cyrus as an admin user
3. How do I get authorization as any user when authenticated as a
privileged user, such as root or cyrus
4. Am I misunderstanding something horribly?