2016-02-17 23:56:40 +02:00
|
|
|
driver = sqlite
|
|
|
|
connect = /data/freeposte.db
|
2016-01-18 22:43:52 +02:00
|
|
|
|
2016-02-17 23:56:40 +02:00
|
|
|
# Return the user hashed password
|
2016-01-18 22:43:52 +02:00
|
|
|
password_query = \
|
2016-02-20 14:57:26 +02:00
|
|
|
SELECT password \
|
2016-02-20 22:55:01 +02:00
|
|
|
FROM user INNER JOIN domain ON user.domain_id = domain.id \
|
2016-02-20 21:11:59 +02:00
|
|
|
WHERE domain.name = '%d' \
|
|
|
|
AND user.username = '%n'
|
2016-01-18 22:43:52 +02:00
|
|
|
|
2016-02-17 23:56:40 +02:00
|
|
|
# Mostly get the user quota
|
|
|
|
user_query = \
|
2016-02-20 21:11:59 +02:00
|
|
|
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'
|