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.
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?
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.
Xn Nooby wrote:
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.
That is a good option, if you happen to be using Courier for your IMAP/POP3 this option exists as well:
http://www.courier-mta.org/imap/README.maildirquota.html
I have no experience with it myself(though I do use Courier in some places, just without quotas).
nate
On Tue, Mar 24, 2009, nate wrote:
Xn Nooby wrote:
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.
That is a good option, if you happen to be using Courier for your IMAP/POP3 this option exists as well:
http://www.courier-mta.org/imap/README.maildirquota.html
I have no experience with it myself(though I do use Courier in some places, just without quotas).
IHMO, by the time the mail is handed off for delivery into the mail store, it's too late as one cannot return an appropriate 422 (mailbox full or user over quota) SMTP response to the sender.
Our solution has been to use a postfix hash table under smtpd_recipient_restrictions which generates this response for users who are over quota. This hash is maintained by a cron job that runs periodically to get users who are over their quotas. The cron job parses ``repquota -a'' output to build the table, and is quite fast. One could also use an MySQL or postgresql table for the same purpose, although I suspect the hash tables are more efficient.
Bill