per-user quotas

Philippe Trolliet p.trolliet at novatec-gmbh.de
Tue Mar 13 16:55:56 EST 2007


you are my hero. ;) thank you. finally i´m able to test it on thursday.

but it seems that cyrus knows in some way which quota the specific user
has. is it possible that cyrus communicates with postfix and asks
postfix about the quota of the recipient?
i´ve set autocreatequota to 40 MB and in postfix i´ve set the quota for
the test-account to 10MB. i send some mail with big attachments to this
test account. the mailbox of the user has a size of something over 10MB
now and doesn´t accept any mail. the messages aren´t delivered and
deferred now. so i think there is a way cyrus talks to postfix about
per-user quotas.


Andrew Morgan wrote:
> On Tue, 13 Mar 2007, Philippe Trolliet wrote:
> 
>> Hi,
>> in the log i see following message:
>> ...
>> Mar 13 12:17:41 mail lmtpunix[10500]:
>> verify_user(novaware.de!user.p^trolliet) failed: Over quota
>> Mar 13 12:17:41 mail postfix/pipe[10689]: E644F5E44F9:
>> to=<p.trolliet at novaware.de>, relay=cyrus, delay=1, status=deferred
>> (temporary failure)
>> ...
>> in one of the mailinglist archives i read sth about the error codes. my
>> problem is that the message is not bounced and so the sender is not
>> notified. it is stuck somewhere in the postfix-queue.
>> i have virtual users and domains and i´m using per-user quotas stored in
>> a mysql-db. i can set the quota for every single user.
>>
>> what do i have to configure that cyrus bounces the message over the lmtp
>> if a quota exceeds? in the archives somebody said sth about the error
>> codes too. how can i do this in the cyrus configuration?
> 
> In /etc/imapd.conf:
> 
> lmtp_over_quota_perm_failure: 1
> 
>> is there any way to tell cyrus to read the per-user quota settings from
>> the mysql-db like in dovecot? or is this just done in postfix?
> 
> Cyrus stores quotas in its own quota files.  I'm not aware of any way to
> read a quota from mysql.
> 
>     Andy


More information about the Info-cyrus mailing list