self-hosting/roles/mailserver_dovecot/templates/conf.d/90-quota.conf.j2

33 lines
702 B
Text
Raw Normal View History

2024-01-09 18:54:43 +01:00
# {{ ansible_managed }}
plugin {
quota = count:User quota
quota_vsizes = yes
quota_status_success = DUNNO
quota_status_nouser = DUNNO
quota_status_overquota = "452 4.2.2 Mailbox is full and cannot receive any more emails"
}
service quota-status {
executable = /usr/lib/dovecot/quota-status -p postfix
unix_listener /var/spool/postfix/private/quota-status {
user = postfix
2024-11-15 12:42:20 +01:00
group = postfix
2024-01-09 18:54:43 +01:00
}
}
2024-01-09 19:25:44 +01:00
plugin {
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
unix_listener quota-warning {
user = vmail
group = vmail
mode = 0660
}
}