add_userdb_quota for dovecot quotas

Version 1.431

Feature
Finished

Ability to have DA add quotas to the file: /etc/virtual/domain.com/passwd so that the dovecot quota plugin can use it to limit quotas within imap. Without this option, quotas are only enforced by exim on the inbox for incoming emails. A sample line from a passwd file with this option would look like: fred:$1$SdbJQZ6r$R5FmKrayU3FvPksLTd.7X0:501:12::/home/username/imap/domain.com/fred/bin/false:userdb_quota_rule=*:bytes=50M To enable DA to add the quota options, add: add_userdb_quota=1 to your directadmin.conf, and restart DA. The internal default is 0. After turning on the option, to convert all existing file to use the extra format, use one of these new task.queue command: echo "action=rewrite&value=email_passwd" >> /usr/local/directadmin/data/task.queue echo "action=rewrite&value=email_passwd&user=fred" >> /usr/local/directadmin/data/task.queue Dovecot how-to portion of using these changes: http://www.directadmin.com/forum/showthread.php?t=43782 Related to enable quota display for dovecot/imap: http://forum.directadmin.com/showthread.php?t=34464 ---------- Related forum request: http://forum.directadmin.com/showthread.php?t=46562

Interested to try DirectAdmin? Get a 30-day Free Trial!