Move to Docker Compose and multiple containers
This commit is contained in:
16
dovecot/conf/dovecot-sql.conf.ext
Normal file
16
dovecot/conf/dovecot-sql.conf.ext
Normal file
@@ -0,0 +1,16 @@
|
||||
driver = sqlite
|
||||
connect = /data/freeposte.db
|
||||
|
||||
# Return the user hashed password
|
||||
password_query = \
|
||||
SELECT password \
|
||||
FROM user INNER JOIN domain ON user.domain_id = domain.id \
|
||||
WHERE domain.name = '%d' \
|
||||
AND user.username = '%n'
|
||||
|
||||
# Mostly get the user quota
|
||||
user_query = \
|
||||
SELECT '*:bytes=' || user.quota_bytes AS quota_rule \
|
||||
FROM user INNER JOIN domain ON user.domain_id = domain.id \
|
||||
WHERE domain.name = '%d' \
|
||||
AND user.username = '%n'
|
||||
Reference in New Issue
Block a user