I am using Dovecot, but have been unable to get either it's maildir or dirsize quotas to be enforced.
It does not seem to prevent the user from receiving emails. I set the limit to 10MB, and was able to receive more than 12MB in emails. I restarted dovecot after making the changes below. Is there something else I need to do? nano -w /etc/dovecot.conf protocol imap { ... mail_plugins = quota imap_quota ... } plugin { ... # 10 MB + 1000 messages quota limit quota = maildir:storage=10240:messages=1000:ignore=Trash ... } On Tue, Mar 24, 2009 at 3:29 PM, Noel Jones <njo...@megan.vbhcs.org> wrote: > Xn Nooby wrote: >> >> I have a small Squirrelmail server, using Postfix & Dovecot. I am >> trying to limit the amount of mail a user can get. The >> "mailbox_size_limit" value does not seem to be being honored. I am >> using the Maildir directory format. > > That's right. mailbox_size_limit only works with "mailbox" single file > delivery. > http://www.postfix.org/postconf.5.html#mailbox_size_limit > >> From googling, it appears that "mailbox_size_limit" applies to a >> single file (mbox format?), and that it does not work with Maildirs. >> Is this correct? > > With maildir, the setting applies to an individual message. > http://www.postfix.org/postconf.5.html#mailbox_size_limit > >> How should I limit the Mailbox size of the users? >> >> I'm not very familiar with Linux "quotas", but I think that is my only >> other choice. > > Either use filesystem quotas, or use a delivery agent (ie. maildrop, > dovecot/deliver, etc.) that supports user quotas. > > -- Noel Jones >