From 8aa76dc5dea99b7217a614e33831b601239d6500 Mon Sep 17 00:00:00 2001 From: downtownallday Date: Sat, 7 Sep 2024 10:49:24 -0400 Subject: [PATCH] don't include Drafts and Sent folders in quota --- setup/mail-users.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/mail-users.sh b/setup/mail-users.sh index b6e36acd..68090aab 100755 --- a/setup/mail-users.sh +++ b/setup/mail-users.sh @@ -90,7 +90,10 @@ pass_attrs = maildrop=user # rewritten the envelope using the maildrop address. # %$ is expanded to mailboxQuota's value. user_filter = (&(objectClass=mailUser)(|(mail=%u)(maildrop=%u))) -user_attrs = maildrop=user,mailboxQuota=quota_rule=*:bytes=%\$ +user_attrs = maildrop=user, \ + mailboxQuota=quota_rule=*:bytes=%\$, \ + =quota_rule2=Drafts:ignore, \ + =quota_rule3=Sent:ignore # Account iteration for various dovecot tools (doveadm) iterate_filter = (objectClass=mailUser)