Update mail server configurations to match the database structure

master
Pierre Jaury 9 years ago
parent 4576e1f5c2
commit e1c34c5984

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

@ -1,6 +1,6 @@
dbpath = /data/freeposte.db dbpath = /data/freeposte.db
query = query =
SELECT destination SELECT destination
FROM alias INNER JOIN domain ON alias.domain_id = domain.id FROM alias
WHERE domain.name = '%d' WHERE alias.domain_name = '%d'
AND alias.localpart = '%u' AND alias.localpart = '%u'

Loading…
Cancel
Save