Actually bind flask-admin to the mail servers

This commit is contained in:
Pierre Jaury
2016-02-20 20:11:59 +01:00
parent 61c99c7014
commit 48fbf737ce
13 changed files with 98 additions and 27 deletions

View File

@@ -4,13 +4,13 @@ connect = /data/freeposte.db
# Return the user hashed password
password_query = \
SELECT password \
FROM users INNER JOIN domains ON users.domain_id = domains.id \
WHERE domains.name = '%d' \
AND users.username = '%n'
FROM user INNER JOIN domain ON user.domain_id = domains.id \
WHERE domain.name = '%d' \
AND user.username = '%n'
# Mostly get the user quota
user_query = \
SELECT '*:bytes=' || users.quota_bytes AS quota_rule \
FROM users INNER JOIN domains ON users.domain_id = domains.id \
WHERE domains.name = '%d' \
AND users.username = '%n'
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'