Basically I’m trying to set an individual 300MB storage limit for each user, as well as a 15MB message limit. This is what I’ve done:
/etc/postfix/main.cf:
mailbox_size_limit = 0
message_size_limit = 15728640
/etc/dovecot/conf.d/20-imap.conf:
mail_plugins = $mail_plugins quota
plugin {
quota = maildir:User quota
}
/etc/dovecot/conf.d/90-quota.conf:
plugin {
quota_rule2 = *:storage=314572800:user=user1@example.com
quota_rule2 = *:storage=314572800:user=user2@example.com
quota_rule2 = *:storage=314572800:user=user3@example.com
}
/usr/local/lib/roundcubemail/config/config.inc.php:
$config['max_message_size'] = '15728640';
Will this work? Am I missing anything?
Also, I do know that this is not officially supported and I will need to make these changes after each Mailinabox update.
Thanks!