[Dovecot] LDA does not read quota from userdb's extra fields

Tim Chen gphoto6 at gmail.com
Wed Sep 9 11:06:41 EEST 2009


The version I use is dovecot 1.2.4

My config in dovecot.conf
protocol imap {
  mail_plugins = quota imap_quota mail_log
}
protocol lda {
  mail_plugins = quota
}

  userdb passwd-file {
    args = /etc/dovecot.userdb
  }

  quota = maildir
  quota_rule = *:storage=100MB

/etc/dovecot.userdb
user1:*:2001:2001::/ms/user1::userdb_quota_rule=*:storage=300M

And in postfix/main.cf
mailbox_command = /usr/local/libexec/dovecot/deliver

I wish to have a global quota 100MB for all the users and using
/etc/dovecot.userdb to specify larger quota(300MB) for some vip users.
IMAP works normally as expected, using the following command will report
correct quota.
a login user1 pass1
user1 getquotaroot INBOX

However, it seems LDA treat all users the same quota (100MB), and when
trying to send mails to those vip users(300MB), it will reject the email
and report "552 Requested mailbox exceeds quota. (in reply to RCPT TO
command))"

My speculation is LDA forget the read 'extra fields' from userdb, would you
please help to verify it?

Thanks very much for your help.

Sincerely,
Tim Chen


More information about the dovecot mailing list