21 Nov
2008
21 Nov
'08
8:44 p.m.
On Sat, 2008-11-15 at 17:09 +0800, sales@100n.org wrote:
passdb: driver: sql args: /usr/local/etc/dovecot-sql.conf
You're using SQL as passdb.
userdb: driver: passwd userdb: driver: static args: uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
But for userdb you're using /etc/passwd and static as a fallback. So this never gets called:
user_query = select 5000 as uid, 5000 as gid, '/home/vmail/%d/%n' as home,
concat('*:bytes=', quota_bytes) as quota_rule
from email_quota where email = '%u'
You should probably remove userdb passwd, userdb static and add userdb sql.