Simple yet functional dovecot+postfix

This commit is contained in:
Pierre Jaury
2016-02-17 22:56:40 +01:00
parent 508c741ffa
commit 47272df96b
24 changed files with 195 additions and 278 deletions

View File

@@ -1,18 +1,10 @@
driver = pgsql
connect = host=localhost dbname=mailsys user=dovecot password=$Dovecot_PASS
driver = sqlite
connect = /data/freeposte.db
# Return the user hashed password
password_query = \
SELECT userid AS "user", password FROM dovecotpassword('%Ln', '%Ld') WHERE %Ls
SELECT password FROM users, domains WHERE username = '%n' AND domain = '%d'
# uncomment this user_query if you want to use the quota plugin
#user_query = \
# SELECT home, uid, gid, mail, quota_rule FROM dovecotquotauser('%Ln', '%Ld')
# otherwise uncomment the following user_query
#user_query = SELECT home, uid, gid, mail FROM dovecotuser('%Ln', '%Ld')
iterate_query = \
SELECT local_part AS username, domain_name.domainname AS domain \
FROM users \
LEFT JOIN domain_data USING (gid) \
LEFT JOIN domain_name USING (gid)
# Mostly get the user quota
user_query = \
SELECT '*:bytes=' || quota_bytes AS quota_rule FROM users WHERE username = '%n' AND domain = '%d'