Alexander Leidinger

Just another weblog

Mar
23

Con­vert­ing from Courier IMAP to dove­cot is easy

I have used Courier IMAP at home since a long time. As I want to update a dove­cot 1.2 setup to dove­cot 2.x, I decided to first have a look at dove­cot 2.x at home.

Switch­ing from Courier IMAP to dove­cot is really easy. I just con­fig­ured the cor­rect path to the maildir, setup a passdb/userdb, and it was working.

The impor­tant part was the cor­rect trans­fer of the pass­words. I used already an userdb in Courier IMAP with MD5 pass­words. For each user it has imappw=XXX with XXX sim­i­lar to $1$abc.

This can be con­verted into a dove­cot passdb/userdb line very easily:

username:{MD5-CRYPT}$1$abc::UID:GID::HOMEDIR::userdb_mail=maildir:~/path/to/maildir

The cor­re­spond­ing passdb/userdb set­tings for dove­cot are:

passdb {
   args = scheme=MD5-CRYPT username_format=%u /usr/local/etc/dovecot/dovecot.pws
   driver = passwd-file
}
userdb {
   args = username_format=%u /usr/local/etc/dovecot/dovecot.pws
   driver = passwd-file
}

Com­pared to when I had a look the last time, dove­cot is also able to use OTP as an authen­ti­ca­tion mech­a­nism now. Unfor­tu­nately I did not find any doc­u­men­ta­tion how to configure/use it.

GD Star Rat­ing
load­ing…
GD Star Rat­ing
load­ing…
Share

Tags: , , , , , , , , ,

One Response to “Con­vert­ing from Courier IMAP to dove­cot is easy”

  1. Mathias Says:

    Inci­den­tally, I just switched to archiveopteryx (after look­ing at dove­cot) and was, well, aston­ished, at how easy it was: make install, run installer, change con­fig to for­bid plain logins and voila: a fast imap and smtp sub­mis­sion server with all­most no con­fig­u­ra­tion! Since I used dbmail before, I could trans­fer users with some sim­ple sql hacking…

    GD Star Rating
    loading...
    GD Star Rating
    loading...

Leave a Reply