This documentation is for Dovecot v1.x, see wiki2 for v2.0 documentation.

VPopMail

Dovecot supports authenticating against external VPopMail virtual domain manager. Dovecot must have been configured with --with-vpopmail to enable this. You can check this with dovecot --build-options. See also VMailMgr for another similar virtual domain manager.

If the vpopmail database contains plaintext passwords, it can be used for non-plaintext authentication as well.

passdb parameters:

userdb parameters:

Example

auth default {
  passdb vpopmail {
    args = webmail=127.0.0.1
  }
  userdb vpopmail {
    args = quota_template=quota_rule=*:backend=%q
  }
}

Using VPopMail's quota instead of Dovecot's

(FIXME: Doesn't quota_template described above solve this problem too?)

You can use VPopMail's quota limits (instead of Dovecot's limits) by configuring Maildir quota like:

plugin {
  quota = maildir
  quota_rule = ?:storage=0
}

"?" means that it uses an existing "maildirsize" file if it exists, otherwise quota is unlimited. VPopMail will recreate this file if it doesn't exist when delivering new mail with its quota setting.

VPopMail + MySQL

Alternatively, you can use the SQL backend with the following configuration:

driver = mysql
#
connect = host=/var/run/mysqld/mysqld.sock user=vpopmail password=YOURPASSWORDHERE dbname=vpopmail
#
default_pass_scheme = PLAIN
#
password_query = SELECT CONCAT(pw_name, '@', pw_domain) AS user, pw_clear_passwd AS password FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d'
#
user_query = SELECT pw_dir as home, 64020 AS uid, 64020 AS gid FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d' 

Most vpopmail installations use 89 as the uid/gid, not 64020.

AuthDatabase/VPopMail (last edited 2010-02-16 22:20:34 by pool-71-244-119-198)