[Dovecot] dovecot-2.0.3 - can not upload message, over quota

LEVAI Daniel leva at ecentrum.hu
Mon Sep 20 17:24:10 EEST 2010


On Mon, Sep 20, 2010 at 14:57:06 +0100, Timo Sirainen wrote:
> On Sun, 2010-09-19 at 18:43 +0200, LEVAI Daniel wrote:
> 
> > Every time I try to upload a message to the server (eg. to a 'Sent'
> > folder, while sending a message), it fails with an error saying I'm over
> > my quota.
> > 
> > Now this is not true, because dovecot-lda can save message to any of my
> > folders, and doveadm says I have no quota (which is true):
> 
> Well, that's strange, because it's using the exact same code.. Are you
> calling dovecot-lda with -d parameter?
I'm calling it from postfix like this:
/usr/local/libexec/dovecot/dovecot-lda -e -d ${recipient}

> > # doveadm quota get -u <user>
> > Quota name  Type      Value Limit %
> > User quota  STORAGE 1075010 -     0
> > User quota  MESSAGE   26750 -     0
> 
> I guess it could be possible that Dovecot is treating "unlimited quota"
> as "0 bytes of quota", although that behavior should be consistent when
> using dovecot-lda too.
[...]
> Set mail_debug=yes and show what it logs when logging in?

imap(username): Debug: Quota root: name=User quota backend=maildir args=
imap(username): Debug: Quota rule: root=User quota mailbox=* bytes=104857600 messages=0
imap(username): Debug: Quota rule: root=User quota mailbox=Trash bytes=+52428800 messages=0

lda(username): Debug: Quota root: name=User quota backend=maildir args=
lda(username): Debug: Quota rule: root=User quota mailbox=* bytes=0 messages=0
lda(username): Debug: Quota rule: root=User quota mailbox=Trash bytes=0 messages=0
lda(username): Debug: maildir++: root=/homedir/Maildir, index=, control=, inbox=/homedir/Maildir
lda(username): Debug: Quota root: name=User quota backend=maildir args=
lda(username): Debug: Quota rule: root=User quota mailbox=* bytes=104857600 messages=0
lda(username): Debug: Quota rule: root=User quota mailbox=Trash bytes=+52428800 messages=0
lda(username): Debug: none: root=, index=, control=, inbox=
lda(username): Debug: Namespace : Using permissions from /homedir/Maildir: mode=0700 gid=-1

I can see that lda and imap reports different quotas and even with lda
there is two different quota values.

I'm using sql userdb, and I'm returning this userdb_import field:
quota_rule=*:storage=0	quota_rule2=Trash:storage=+0


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F


More information about the dovecot mailing list