This documentation is for Dovecot v2.x, see wiki1 for v1.x 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

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

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, \
  89 AS uid, 89 AS gid \
  FROM vpopmail \
  WHERE pw_name = '%n' AND pw_domain = '%d'

AuthDatabase/VPopMail (last edited 2010-06-14 20:35:49 by TimoSirainen)