I'm running an Ubuntu mail server with Dovecot 2.2.33 and am using system accounts:
passdb {
driver = pam
I have about 100 mail users.
I would like to impose per-user storage quotas, but the Dovecot docs on per-user quota configuration say:
The Passwd userdb doesn’t support extra fields. That’s why you can’t directly set users’ quota limits to passwd file. One possibility would be to write a script that reads quota limits from another file, merges them with passwd file and produces another passwd-file, which you could then use with Dovecot’s Passwd-file.
Does anyone have an example of such a script? I'm not clear from the docs how the password itself is handled, for example. Or is there some other workaround that wouldn't entail having to migrate to a virtual user setup to get per-user quotas?