Timo Sirainen schrieb:
On Tue, 2008-09-16 at 17:54 +0200, Jonas Christian wrote:
which I changed to
quota_rule=*:bytes:<bytes>
I guess you really have bytes=, not bytes:? Otherwise it should have logged an error.
Yeah, I put it correctly, sorry. Should have copied it straight from the file into the mail.
What happens now is that deliver (the Dovecot LDA) only picks up the quotas set in the maildirsize file in the user's homedir. It doesn't pick up the quota set in the userdb.
Also, when I delete the maildirsize file, I doesn't get recreated by the LDA and quotas don't get checked at all.
Any ideas? I'd be very grateful for any pointers.
Set mail_debug=yes. What does it log when logging in?
Ok, here are some logs. The first one is an IMAP login, the second and third are delivery attempts by the Dovecot LDA (deliver):
Sep 15 00:24:52 mailserver dovecot: auth(default): client in: AUTH 1 CRAM-MD5 service=imap secured lip=10.1.1.1 rip=212.0.138.106 lport=143 rport=60658 Sep 15 00:24:52 mailserver dovecot: auth(default): client out: CONT 1 PDQ2NDIxNzQ3Mzc3NDAwNTQuMTIyMTQ zMTA5MkB0ZG8tbWFpbDAyLmRtejExLmlzYy50b2RvLmRlPg== Sep 15 00:24:52 mailserver dovecot: auth(default): client in: CONT 1 a2FyaW4uemVpbGluZ2VyQGRibC5kZSA wZmM4OGViYzY4YzU5ZWY0MDhlMTZkMTZjMzA5ZmE5NA== Sep 15 00:24:52 mailserver dovecot: auth(default): passwd-file(spam@xxx.com,212.0.138.106): lookup: user=spam@xxx.com file=/var/vmail/config/passdb Sep 15 00:24:52 mailserver dovecot: auth(default): password(spam@xxx.com,212.0.138.106): Credential s: 23dfff7d8ebf062c839cc16a0cdded45785a804e988fdde376cd8608b8f72bfe Sep 15 00:24:52 mailserver dovecot: auth(default): client out: OK 1 user=spam@xxx.com Sep 15 00:24:52 mailserver dovecot: auth(default): master in: REQUEST 380864 15886 1 Sep 15 00:24:52 mailserver dovecot: auth(default): passwd-file(spam@xxx.com,212.0.138.106): lookup: user=spam@xxx.com file=/var/vmail/config/passdb Sep 15 00:24:52 mailserver dovecot: auth(default): master out: USER 380864 spam@xxx.com uid=100 5 gid=1005 home=/var/vmail/mailboxes/xxx.com/spam quota=maildir:bytes=20480000 Sep 15 00:24:52 mailserver dovecot: imap-login: Login: user=spam@xxx.com, method=CRAM-MD5, rip=212. 0.138.106, lip=10.1.1.1, TLS Sep 15 00:24:52 mailserver dovecot: IMAP(spam@xxx.com): Disconnected: Logged out bytes=34/330
Sep 15 00:13:47 mailserver dovecot: auth(default): master in: USER 1 spam@xxx.com service=deliver Sep 15 00:13:47 mailserver dovecot: auth(default): passwd-file(spam@xxx.com): lookup: user=spam@xxx.com file=/var/vmail/config/passdb Sep 15 00:13:47 mailserver dovecot: auth(default): master out: USER 1 spam@xxx.com uid=1005 gid=1005 home=/var/vmail/mailboxes/xxx.com/spam quota=maildir:bytes=20480000 Sep 15 00:13:47 mailserver deliver(spam@xxx.com): msgid=63883.dion@simon: save failed to INBOX: Quota exceeded Sep 15 00:13:47 mailserver deliver(spam@xxx.com): msgid=63883.dion@simon: rejected: Quota exceeded Sep 15 00:13:47 mailserver postfix/pickup[13790]: 77971A6C6C: uid=1005 from=<> Sep 15 00:13:47 mailserver postfix/pipe[13842]: 4BD7BA6C65: to=spam@xxx.com, relay=dovecot, delay=0.19, delays=0.12/0.01/0/0.06, dsn=2.0.0, status=sent (delivered via dovecot service)
Sep 16 15:13:17 mailserver deliver(spam@xxx.com): Loading modules from directory: /usr/local/lib/dovecot/lda Sep 16 15:13:17 mailserver deliver(spam@xxx.com): Module loaded: /usr/local/lib/dovecot/lda/lib10_quota_plugin.so Sep 16 15:13:17 mailserver deliver(spam@xxx.com): Module loaded: /usr/local/lib/dovecot/lda/lib90_cmusieve_plugin.so Sep 16 15:13:17 mailserver deliver(spam@xxx.com): auth input: spam@xxx.com Sep 16 15:13:17 mailserver deliver(spam@xxx.com): auth input: uid=1005 Sep 16 15:13:17 mailserver deliver(spam@xxx.com): auth input: gid=1005 Sep 16 15:13:17 mailserver deliver(spam@xxx.com): auth input: home=/var/vmail/mailboxes/xxx.com/spam Sep 16 15:13:17 mailserver deliver(spam@xxx.com): Quota root: name= backend=maildir args= Sep 16 15:13:17 mailserver deliver(spam@xxx.com): Namespace: type=private, prefix=INBOX., sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes Sep 16 15:13:17 mailserver deliver(spam@xxx.com): maildir: data=/var/vmail/mailboxes/xxx.com/spam Sep 16 15:13:17 mailserver deliver(spam@xxx.com): maildir++: root=/var/vmail/mailboxes/xxx.com/spam, index=, control=, inbox=/var/vmail/mailboxes/xxx.com/spam Sep 16 15:13:17 mailserver deliver(spam@xxx.com): cmusieve: /var/vmail/mailboxes/xxx.com/spam/.dovecot.sieve doesn't exist Sep 16 15:13:17 mailserver deliver(spam@xxx.com): msgid=000901c917fd$04f1263c$3690c4a2@hbjyxab: saved mail to INBOX
Thanks for your feedback.
Jonas