Dovecot
From Wikitech
Dovecot is an IMAP and POP3 server, and is used on Wikimedia's IMAP server sanger.
Dovecot can be installed from the Ubuntu dovecot-imap package, which also pulls in dovecot-common.
Configuration
The configuration file resides in /etc/dovecot/dovecot.conf.
Mail location
As we have a unified virtual users IMAP setup, the Maildir directory can be determined using a template:
mail_location = maildir:/var/vmail/%d/%n