[Dovecot] Per User Quotas with LDAP on Dovecot 1.x

Camron W. Fox cwfox at us.fujitsu.com
Tue Oct 19 02:09:13 EEST 2010


On 10/10/18 11:28, Timo Sirainen wrote:
> On 18.10.2010, at 20.42, Camron W. Fox wrote:
> 
>>> You're not calling deliver with -d parameter?
>>
>> 	No. Did I miss that in the documentation? Where is that configured?
>> This is what I have in postfix main.cf:
>>
>> mailbox_command = /usr/libexec/dovecot/deliver
> 
> Often that's done with system users who have no extra stuff in userdb. I'm not sure how to configure it right. Try something like:
> 
> mailbox_command = /usr/libexec/dovecot/deliver -d $user
> 
> If that doesn't work, look into Postfix docs to find out what $user should be replaced with.
> 
> 
> 
Timo,

	Looking at the logs, it appears that it must already be using -d $user
because of the username shown in the deliver lines in dovecot.log, right?

Oct 15 09:07:05 deliver(loadtest): Info: Loading modules from directory:
/usr/lib64/dovecot/lda
Oct 15 09:07:05 deliver(loadtest): Info: Module loaded:
/usr/lib64/dovecot/lda/lib10_quota_plugin.so
Oct 15 09:07:05 deliver(loadtest): Info: Module loaded:
/usr/lib64/dovecot/lda/lib20_mail_log_plugin.so
Oct 15 09:07:05 deliver(loadtest): Info: Quota root: name=User quota
backend=maildir args=
Oct 15 09:07:05 deliver(loadtest): Info: Quota rule: root=User quota
mailbox=* bytes=10485760 messages=0
Oct 15 09:07:05 deliver(loadtest): Info: Quota rule: root=User quota
mailbox=Trash ignored
Oct 15 09:07:05 deliver(loadtest): Info: Quota warning: bytes=6291456
(60%) messages=0 command=/utils/bin/
quota-warning.sh 60
Oct 15 09:07:05 deliver(loadtest): Info: Quota warning: bytes=5767168
(55%) messages=0 command=/utils/bin/
quota-warning.sh 55
Oct 15 09:07:05 deliver(loadtest): Info: Quota warning: bytes=5242880
(50%) messages=0 command=/utils/bin/
quota-warning.sh 50
Oct 15 09:07:05 deliver(loadtest): Info: maildir:
data=/var/spool/mail/loadtest
Oct 15 09:07:05 deliver(loadtest): Info: maildir++:
root=/var/spool/mail/loadtest, index=, control=, inbox
=/var/spool/mail/loadtest
Oct 15 09:07:05 deliver(loadtest): Info: Namespace : Using permissions
from /var/spool/mail/loadtest: mode
=0755 gid=-1
Oct 15 09:07:05 deliver(loadtest): Info:
msgid=<20101015190702.0D4AC64029B at loa.subaru.nao.ac.jp>: save fai
led to INBOX: Quota exceeded (mailbox for user is full)
Oct 15 09:07:05 deliver(loadtest): Info:
msgid=<20101015190702.0D4AC64029B at loa.subaru.nao.ac.jp>: rejected
: Quota exceeded (mailbox for user is full)
Oct 15 09:07:05 deliver(loadtest): Info: Sending a rejection to
loadtest: Quota exceeded (mailbox for user
 is full)

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



More information about the dovecot mailing list