Define disk quota on simple Postfix + Dovecot mail server
Hi,
I just setup my new mail server on Slackware64 14.0, using Postfix and Dovecot. It's running fine, with a handful of domains and a few handfuls of users. Configuration is "Keep It Simple Stupid", so no virtual users, no MySQL, just a bunch of addresses mapped to local users (who can't login directly to the machine). Here's my own HOWTO (in French, but the configuration listings are universal): http://www.microlinux.fr/slackware/L...Mail-HOWTO.txt Right now I'm wondering how I could define some quotas on a per-user basis. I don't like the idea of unlimited mail storage. My first question is: should I use Postfix quota mechanisms, or rather plain disk quota? I already know the latter, which I do use on networks with central authentication (with edquota and repquota). Any suggestions? |
|
Quote:
Code:
# /etc/dovecot/dovecot.conf How do I configure the default behaviour (100 MB quota) in dovecot.conf? As for the quota overrides, here's the page that explains (more or less) how to do that: http://wiki2.dovecot.org/UserDatabase/ExtraFields I think I'm concerned by the last section (passwd-file), but what do I have to do here? Edit my /etc/passwd file and add fields like userdb_quota_rule=*:storage=500M for overrides? I'm puzzled. |
OK, I experimented some more, and implementing "classical" Linux disk quotas works very nice.
I defined some very restrictive quotas for a few users, and once their disk is full, the sender of a mail gets a "Disk quota exceeded" mail in return. Which is all I wanted, so I'll mark this thread as SOLVED. Thanks ! |
All times are GMT -5. The time now is 01:25 PM. |