Allow authentication from webmail directly, fixes #308

This commit is contained in:
kaiyou
2017-11-10 15:54:41 +01:00
parent 28eff398d1
commit 652ca769dc
4 changed files with 6 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ connect = /data/main.db
# Return the user hashed password
password_query = \
SELECT NULL as password, 'Y' as nopassword, '{{ FRONT_ADDRESS }}' as allow_nets \
SELECT NULL as password, 'Y' as nopassword, '{{ FRONT_ADDRESS }}{% if WEBMAIL_ADDRESS %},{{ WEBMAIL_ADDRESS }}{% endif %}' as allow_nets \
FROM user \
WHERE user.email = '%u'