Alle, We're running Dovecot V1.0.7 on RHEL5.5, using maildir. We would like to user per user quotas with an OpenLDAP (V2.3.43) backend. We have setup a default quota in /etc/dovecot.conf: quota = maildir:storage=10240:ignore=Trash And have the following userdb configs in /etc/doveconf.conf: userdb ldap { args = /etc/dovecot-ldap.conf } and the following user_attrs defined in /etc/dovecot-ldap.conf user_attrs uidNumber=uid,gidNumber=gid,mailQuotaSize=quota=maildir:ignore=Trash:storage,mail_plugins The user's quota setting is: dn: uid=loadtest,ou=people,dc=subaru,dc=nao,dc=ac,dc=jp mailQuotaSize: 1024000 Dovecot-imap appear to recognize the quota from ldap, as the Thunderbird quota plugin reads the correct info from LDAP if the mailQuotaSize entry exists, and the default storage=10240 from doveconf.conf if there is no LDAP attr. However, deliver bounces the mails with a quota exceeded message: deliver(loadtest): Sep 28 10:46:23 Info: msgid=<20100928204620.B83876402EA at loa.subaru.nao.ac.jp> : save failed to INBOX: Quota exceeded deliver(loadtest): Sep 28 10:46:23 Info: msgid=<20100928204620.B83876402EA at loa.subaru.nao.ac.jp> : Rejected: Quota exceeded Are we misunderstanding the way quotas are supposed to work in 1.x, or are we just missing something, period? Any help would be appreciated. Best Regards, Camron -- Camron W. Fox Hilo Office High Performance Computing Group Fujitsu Management Services of America, Inc. E-mail: cwfox at us.fujitsu.com
On 2010-10-07 3:12 PM, Camron W. Fox wrote:> We're running Dovecot V1.0.7 on RHEL5.5,Very old, you will not get much support unless/until you upgrade... 1.2.15 is recommended for most, although 2.0.5 is current stable... Lots of changes with respect to quotas (and everything else)... -- Best regards, Charles Marcus I.T. Director Media Brokers International, Inc. 678.514.6200 x224 | 678.514.6299 fax
On 7.10.2010, at 22.12, Camron W. Fox wrote:> Dovecot-imap appear to recognize the quota from ldap, as the > Thunderbird quota plugin reads the correct info from LDAP if the > mailQuotaSize entry exists, and the default storage=10240 from > doveconf.conf if there is no LDAP attr.ok, so> However, deliver bounces the mails with a quota exceeded message:you mean deliver doesn't read the quota from ldap and just uses the default? Are you calling it with -d parameter? Otherwise it doesn't do userdb lookup at all.
On 10/10/19 08:01, Timo Sirainen wrote:> No. The username is sent another way to deliver. Anyway, I think -d > $RECIPIENT is the right way. >Timo, I modified the mailbox command in /etc/postfix/main.cf: mailbox_command = /usr/libexec/dovecot/deliver -d ${recipient} This causes postfix to bounce the message with this error: Oct 27 09:06:57 rb8 postfix/local[1931]: A99494E0D25: to=<loadtest at subaru.naoj.org>, relay=local, delay=10, delays=0.08/0/0/10, dsn=5.3.0, status=bounced (command line usage error. Command output: Fatal: Missing -d argument ) Any ideas? Best Regards, Camron -- Camron W. Fox Hilo Office High Performance Computing Group Fujitsu Management Services of America, Inc. E-mail: cwfox at us.fujitsu.com
On Wed, 27 Oct 2010 09:11:02 -1000 Camron W. Fox <cwfox at us.fujitsu.com> articulated:> On 10/10/19 08:01, Timo Sirainen wrote: > > No. The username is sent another way to deliver. Anyway, I think -d > > $RECIPIENT is the right way. > > > Timo, > > I modified the mailbox command in /etc/postfix/main.cf: > > mailbox_command = /usr/libexec/dovecot/deliver -d ${recipient} > > This causes postfix to bounce the message with this error: > > Oct 27 09:06:57 rb8 postfix/local[1931]: A99494E0D25: > to=<loadtest at subaru.naoj.org>, relay=local, delay=10, > delays=0.08/0/0/10, dsn=5.3.0, status=bounced (command line usage > error. Command output: Fatal: Missing -d argument )See: http://www.postfix.com/postconf.5.html#mailbox_command If you still cannot get it to work, I would suggest asking on the Postfix forum since it is issuing the error message. -- Jerry ? Dovecot.user at seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________
On 10/10/27 09:56, Jerry wrote:> On Wed, 27 Oct 2010 09:11:02 -1000 > Camron W. Fox <cwfox at us.fujitsu.com> articulated: > >> On 10/10/19 08:01, Timo Sirainen wrote: >>> No. The username is sent another way to deliver. Anyway, I think -d >>> $RECIPIENT is the right way. >>> >> Timo, >> >> I modified the mailbox command in /etc/postfix/main.cf: >> >> mailbox_command = /usr/libexec/dovecot/deliver -d ${recipient} >> >> This causes postfix to bounce the message with this error: >> >> Oct 27 09:06:57 rb8 postfix/local[1931]: A99494E0D25: >> to=<loadtest at subaru.naoj.org>, relay=local, delay=10, >> delays=0.08/0/0/10, dsn=5.3.0, status=bounced (command line usage >> error. Command output: Fatal: Missing -d argument ) > > See: http://www.postfix.com/postconf.5.html#mailbox_command > > If you still cannot get it to work, I would suggest asking on the > Postfix forum since it is issuing the error message. >Jerry, Perfect. I was looking for $USER, not $RECIPIENT. Thank you both for your help. Best Regards, Camron -- Camron W. Fox Hilo Office High Performance Computing Group Fujitsu Management Services of America, Inc. E-mail: cwfox at us.fujitsu.com