On Fri, 27 Jun 2003, joe ritter wrote:

> Hello,
> I am tasked with moving 10K users away from
> /var/mail/$username UW Imap to Cyrus. I bought the
> book Managing IMAP and there is a chapter however the
> scripts still refer to the TCL based cyradm. I was
> wondering if anyone could share any batch creating and
> batch setup scripts with me and or any other tips on
> this procedure. Thanks in advance.

I hacked mailutil (ftp://ftp.cac.washington.edu/imap/imap.tar.Z) not to
prompt for the cyrus admin password.  Backup your old mailspool.  Create
mailboxes on cyrus.  Then,

cd /var/mail
for m in *
do
   mailutil append /var/mail/$m 
{new.cyrus.server/norsh/tls/authuser=cyrusadmin/user=$m}INBOX
done

For this to work your cyrus server needs to support PLAIN+TLS mech
Unfortunately CRAM-MD5 does not support proxy auth and UW libs do not
support DIGEST-MD5.

Hope this help.

-- 
Igor

Reply via email to