V
V
Valeriu1472017-05-21 18:13:17
postfix
Valeriu147, 2017-05-21 18:13:17

How to create email quotas for hosting account in dovecot?

Now I have quotas for mailboxes, for example, the result of a query from the /etc/dovecot/dovecot-sql.conf.ext file will be like this:

+--------------------------------+--------------------------+-------------+--------------------+
| name                           | dns                      | pass        | userdb_quota_rule  |
+--------------------------------+--------------------------+-------------+--------------------+
| [email protected]                 | test.com                 | testpass    | *:bytes=5000000000 |
+--------------------------------+--------------------------+-------------+--------------------+

In my organization, there is a "profiles" table.
In the "dns" table I have the domains for these profiles.
In the "mails" table, I have email boxes for these domains.
My folder structure where this whole thing is stored looks like this:
/var/vmail/<name of domain>/<name of mailbox>/
I mean this structure
/var/vmail/<name of profile>/<name of domain>/<name of mailbox>/

Can I make a quota not for a domain, not for an e-mail box. How can I make a quota for the field "name of profile" ?
Can this be done with Dovecot or should I use disk quotas? What are the ideas?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question