commit | author | age
|
94927b
|
1 |
# http://wiki.dovecot.org/AuthDatabase/SQL |
T |
2 |
# |
|
3 |
# CREATE TABLE users ( |
|
4 |
# userid VARCHAR(128) NOT NULL, |
|
5 |
# password VARCHAR(64) NOT NULL, |
|
6 |
# home VARCHAR(255) NOT NULL, |
|
7 |
# uid INTEGER NOT NULL, |
|
8 |
# gid INTEGER NOT NULL, |
|
9 |
# active CHAR(1) DEFAULT 'Y' NOT NULL |
|
10 |
# ); |
|
11 |
|
|
12 |
driver = mysql |
82e9b9
|
13 |
connect = host={mysql_server_host} dbname={mysql_server_database} user={mysql_server_ispconfig_user} password={mysql_server_ispconfig_password} port={mysql_server_port} |
94927b
|
14 |
default_pass_scheme = CRYPT |
T |
15 |
|
03b633
|
16 |
# password-query with prefetch |
f339eb
|
17 |
password_query = SELECT email as user, password, maildir as userdb_home, CONCAT( maildir_format, ':', maildir, '/', IF(maildir_format='maildir','Maildir',maildir_format)) as userdb_mail, uid as userdb_uid, gid as userdb_gid, CONCAT('*:storage=', quota, 'B') AS userdb_quota_rule, CONCAT(maildir, '/.sieve') as userdb_sieve FROM mail_user WHERE (login = '%u' OR email = '%u') AND `disable%Ls` = 'n' AND server_id = '{server_id}' |
D |
18 |
user_query = SELECT email as user, maildir as home, CONCAT( maildir_format, ':', maildir, '/', IF(maildir_format='maildir','Maildir',maildir_format)) as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = '%u' OR email = '%u') AND `disable%Ls` = 'n' AND server_id = '{server_id}' |
bfcdef
|
19 |
|
T |
20 |
# The iterate_query is required for the doveadm command only and works only on dovecot 2 servers. |
|
21 |
# Do not enable it on Dovecot 1.x servers |
|
22 |
# iterate_query = SELECT email as user FROM mail_user |