2016-02-17 23:56:40 +02:00
|
|
|
driver = sqlite
|
2016-10-29 13:42:39 +02:00
|
|
|
connect = /data/main.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 = \
|
2017-11-10 16:54:41 +02:00
|
|
|
SELECT NULL as password, 'Y' as nopassword, '{{ FRONT_ADDRESS }}{% if WEBMAIL_ADDRESS %},{{ WEBMAIL_ADDRESS }}{% endif %}' as allow_nets \
|
2016-03-19 21:40:01 +02:00
|
|
|
FROM user \
|
2016-05-01 20:04:40 +02:00
|
|
|
WHERE user.email = '%u'
|
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 \
|
2016-03-19 21:40:01 +02:00
|
|
|
FROM user \
|
2016-05-01 20:04:40 +02:00
|
|
|
WHERE user.email = '%u'
|