bundlewrap/bundles/dovecot/files/dovecot-sql.conf
mwiegand 1adcf72680 wip
2021-07-08 20:09:08 +02:00

10 lines
392 B
Text

connect = host=${host} dbname=${name} user=${user} password=${password}
driver = pgsql
default_pass_scheme = SHA512-CRYPT
password_query = SELECT CONCAT(users.name, '@', domains.name) AS user, password\
FROM users \
LEFT JOIN domains ON users.domain_id = domains.id \
WHERE redirect IS NULL \
AND users.name = SPLIT_PART('%u', '@', 1) \
AND domains.name = SPLIT_PART('%u', '@', 2)