Migrating Fedora UW-IMAP to Courier IMAP

1. Perform a fullbackup (a must)
2. Stop sendmail and IMAP/POP3 service
3. Uninstall UW-IMAP
4. Download and install Courier IMAP Server from

Courier -

http://rpm.pbone.net/index.php3/stat/4/idpl/1875700/com/courier-0.42.2-1.7.2.i386.rpm.html

Courier IMAP -

http://rpm.pbone.net/index.php3/stat/4/idpl/1389464/com/courier-imapd-0.42.2-1.7.2.i386.rpm.html

Courier POP3 -

http://rpm.pbone.net/index.php3/stat/4/idpl/1875740/com/courier-pop3d-0.42.2-1.7.2.i386.rpm.html

5. Suppose the Courier could able to run without any addiontion configuration.

6. Starting to migrate mbox file to Maildir file

- Download a useful tool from

http://batleth.sapienti-sat.org/projects/mb2md/mb2md-3.20.pl.gz

and modify the mail spool directory path and perl exec path.

put it into /usr/bin call mb2md and chmod to 755

7. login as the user with using su -l levin
8a. Run “mb2md -m” to convert /var/spool/mail levin to ~/Maildir
8b. Move the Sent, Draft, Trash..etc to a new directory, for example /home/levin/oldmail and run “mb2md -s oldmail -R” at home directory.

or when you logged as root

for i in *; do echo $i;su – $i -c “/usr/bin/mb2md -s . -l .mailboxlist -d Maildir”;done

for i in *; do echo $i;su – $i -c “/usr/bin/mb2md -m”;done

10. create /etc/procmailrc

MAILDIR=$HOME
DEFAULT=$MAILDIR/Maildir/

Ref Link:

http://www.courier-mta.org

http://rpm.pbone.net/

http://batleth.sapienti-sat.org/projects/mb2md/

Fedora 5 Packages

http://www.enlartenment.com/packages/fedora/5/i386/?C=M;O=A