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
password_query = \
SELECT password \
FROM user INNER JOIN domain ON user.domain_id = domain.id \
WHERE domain.name = '%d' \
FROM user \
WHERE user.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' \
FROM user \
WHERE user.domain_name = '%d' \
AND user.username = '%n'

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

Loading…
Cancel
Save