This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.

In this particular example we do not use encrypted IMAP because the server is one hosted for about 20 close friends, and they are the only ones who have access, and the vast majority only have webmail access. There are very few circumstances where you would not want or need encrypted connections, so this is really an exceptional case.

This is therefore just about the simplest example you are ever going to see.

Note that it worked out-of-the-box with FreeBSD PAM, using only the PAM configuration for FreeBSD already documented in the dovecot wiki.

protocols = imap
listen =
ssl_disable = yes
first_valid_uid = 1000
last_valid_uid = 2000
first_valid_gid = 1000
last_valid_gid = 2000
default_mail_env = mbox:~/IMAP/:INBOX=/var/mail/%u
mail_privileged_group = mail
protocol imap
auth_executable = /usr/local/libexec/dovecot/dovecot-auth
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890

auth default {
  mechanisms = plain
  userdb passwd {
  passdb pam {
    args = session=yes *
    args = *

  user = root

Here is the config command used to build dovecot

./configure --prefix=/usr/local --enable-shared --enable-static --disable-ipv6  --with-ioloop=poll --with-passwd --with-shadow --with-pam --with-passwd-file --without-checkpassword --without-bsdauth --without-gssapi --without-ldap  --with-static-userdb --without-prefetch-userdb --with-mysql --with-ssl=openssl --with-ssldir=/usr/local/etc/dovecot/ssl --with-rundir=/var/run/dovecot --with-storages=mbox --with-sql-drivers


DovecotServerInstallations/FreeBSD/6.0RELEASE/20Users (last edited 2009-03-15 22:35:09 by localhost)