24 lines
700 B
Plaintext
24 lines
700 B
Plaintext
driver = mysql
|
|
connect = host=dbserver dbname=postfix user=postfix password=password
|
|
default_pass_scheme = MD5-CRYPT
|
|
|
|
user_query = \
|
|
SELECT \
|
|
'/var/mail/domains/%u/' as home, \
|
|
'maildir:/var/mail/domains/%u/' as mail, \
|
|
8 AS uid, \
|
|
12 AS gid, \
|
|
concat('dirsize:storage=', quota) AS quota \
|
|
FROM mailbox \
|
|
WHERE username = '%u' AND active = '1'
|
|
|
|
password_query = \
|
|
SELECT \
|
|
username as user, \
|
|
password, \
|
|
'/var/mail/domains/%u/' as userdb_home, \
|
|
'maildir:/var/mail/domains/%u/' as userdb_mail, \
|
|
8 as userdb_uid, \
|
|
12 as userdb_gid \
|
|
FROM mailbox \
|
|
WHERE username = '%u' AND active = '1' |