16 lines
654 B
Plaintext
16 lines
654 B
Plaintext
default_pass_scheme = CRYPT
|
|
driver = mysql
|
|
connect = host={{vars.dovecot_vimbadmin_sql.cfg.db_host}} dbname={{vars.dovecot_vimbadmin_sql.cfg.db_name}} user={{vars.dovecot_vimbadmin_sql.cfg.db_user}} password={{vars.dovecot_vimbadmin_sql.cfg.db_pass}}
|
|
password_query = \
|
|
SELECT username AS user, password, \
|
|
homedir AS userdb_home, uid AS userdb_uid, gid AS userdb_gid \
|
|
FROM mailbox WHERE username = '%u'
|
|
iterate_query = SELECT username AS user FROM mailbox
|
|
|
|
user_query = \
|
|
SELECT 'maildir:~/Maildir' as mail, '{{vars.dovecot_vimbadmin_sql.dovecot_cfg.vmail_dir}}/%d/%n' as home, 1003 as gid, 1003 as uid FROM mailbox WHERE username = '%u'
|
|
|
|
|
|
|
|
|