Con­vert­ing from Cour­i­er IMAP to dove­cot is easy

I have used Cour­i­er IMAP at home since a long time. As I want to up­date a dove­cot 1.2 setup to dove­cot 2.x, I de­cided to first have a look at dove­cot 2.x at home.

Switch­ing from Cour­i­er IMAP to dove­cot is really easy. I just con­figured the cor­rect path to the maildir, setup a passdb/​userdb, and it was work­ing.

The im­port­ant part was the cor­rect trans­fer of the pass­words. I used already an user­db in Cour­i­er IMAP with MD5 pass­words. For each user it has imappw=XXX with XXX sim­il­ar to $1$abc.

This can be con­ver­ted in­to a dove­cot passdb/​userdb line very eas­ily:


The cor­res­pond­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
user­db {
   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 au­then­tic­a­tion mech­an­ism now. Un­for­tu­nately I did not find any doc­u­ment­a­tion how to configure/​use it.

1 thought on “Con­vert­ing from Cour­i­er IMAP to dove­cot is easy”

  1. In­cid­ent­ally, I just switched to archi­ve­o­pteryx (after look­ing at dove­cot) and was, well, as­ton­ished, at how easy it was: make in­stall, run in­staller, change con­fig to for­bid plain lo­gins and voila: a fast imap and smtp sub­mis­sion serv­er with all­most no con­fig­ur­a­tion! Since I used db­mail be­fore, I could trans­fer users with some simple sql hack­ing…

Leave a Reply

Your email address will not be published. Required fields are marked *