diff --git a/bundles/dovecot/files/dovecot-sql.conf b/bundles/dovecot/files/dovecot-sql.conf deleted file mode 100644 index 8f26825..0000000 --- a/bundles/dovecot/files/dovecot-sql.conf +++ /dev/null @@ -1,17 +0,0 @@ -connect = host=${host} dbname=${name} user=${user} password=${password} -driver = pgsql -default_pass_scheme = ARGON2ID - -user_query = SELECT '/var/vmail/%u' AS home, 'vmail' AS uid, 'vmail' AS gid - -iterate_query = SELECT CONCAT(users.name, '@', domains.name) AS user \ - FROM users \ - LEFT JOIN domains ON users.domain_id = domains.id \ - WHERE redirect IS NULL - -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) diff --git a/bundles/dovecot/files/dovecot.conf b/bundles/dovecot/files/dovecot.conf index 2051535..95871f5 100644 --- a/bundles/dovecot/files/dovecot.conf +++ b/bundles/dovecot/files/dovecot.conf @@ -1,12 +1,17 @@ +dovecot_config_version = ${config_version} +dovecot_storage_version = ${storage_version} + protocols = imap lmtp sieve auth_mechanisms = plain login mail_privileged_group = mail ssl = required -ssl_cert =