[SOLVED] Define disk quota on simple Postfix + Dovecot mail server
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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):
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).
I already read this page, but it's unfortunately not very well explained, e. g. I still don't know which option goes where. Here's my actual (working) /etc/dovecot/dovecot.conf file:
Let's say - for example's sake - I want a default of 100 MB mail storage per user, except users mworms and jpvergniol, who should get each one 500 MB mail storage.
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:
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.