imapd howto

http://www.wienand.org/files/debian_imap.html also looks useful.