Tim Chen
2009-Sep-09 08:06 UTC
[Dovecot] LDA does not read quota from userdb's extra fields
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
Timo Sirainen
2009-Sep-09 20:51 UTC
[Dovecot] LDA does not read quota from userdb's extra fields
On Wed, 2009-09-09 at 16:06 +0800, Tim Chen wrote:> And in postfix/main.cf > mailbox_command = /usr/local/libexec/dovecot/deliverdeliver does userdb lookup from dovecot-auth only when you call it with -d "$USER" parameter. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090909/1221d5f1/attachment-0002.bin>