Converting mbox to cyrus maildir w/ seen state preservation
Igor Brezac
igor at ipass.net
Mon Dec 22 10:28:29 EST 2003
On Mon, 22 Dec 2003, Miham KEREKES wrote:
> Hi,
>
> I'm about to migrate user mailboxes from unix mbox mailbox format
> to cyrus maildir. Unfortunately, users have lots of separate
> mailfolders in mbox format, which i should convert, too.
>
> I dig into the archive, and found the mailutil utility for doing this:
> mailutil append /path/to/mbox {new.cyrus.server/user=mbox_cyrus_user/authuser=proxy_user/norsh}INBOX
> and I figured out, that it is capable to creating mailboxes, too.
>
> I've migrated the users Inbox already successfully, but with the
> difference: that time I knew the users password (I created them with a
> script before), so I had no need to use the /authuser=XXX option.
> Since then they've changed their password, so I don't know them.
> (Yes, I forgot about their ~/mail mailboxes :-( )
> However, this time I need to use the /authuser=XXX, if I'm not mistaken.
>
> When I try this:
> mailutil create {cyrus.server.name.or.ip/user=targetuser/authuser=cyrus_admin_user/norsh}INBOX.subfolder
> I got the following errormessage:
>
> Can't do /authuser with this server
> Can't do /authuser with this server
>
> I already strace'd and ltrace'd the process in order to know what is the
> problem, but all I got to know, that mailutil parsing the output of the
> CAPABILITY command, and decides whether the server is capable of
> authuser.
>
> I don't have much time for this conversion, so I had no time to look
> into the source, yet.
>
> I have the following capabilities:
> * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
> NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND
> SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=NTLM
> AUTH=DIGEST-MD5 AUTH=CRAM-MD5 LISTEXT LIST-SUBSCRIBED ANNOTATEMORE
>
mailutil is picking CRAM-MD5 up which does not support proxy
authentication. Stop advertising CRAM-MD5 on the cyrus side. Add /tls
which will allow mailutil to use PLAIN. PLAIN is the only mech
implemented by c-client which support proxy auth.
Hope this helps.
--
Igor
More information about the Info-cyrus
mailing list