Add dovecot quota config

This commit is contained in:
Tunui Franken 2024-01-09 18:54:43 +01:00
parent 9ce0ae045f
commit 658c1ce9b4
2 changed files with 25 additions and 0 deletions

View file

@ -126,3 +126,11 @@
backrefs: true
line: '\1mail_plugins = $mail_plugins sieve'
notify: Reload dovecot service
- name: Copy 90-quota.conf
become: true
ansible.builtin.template:
src: conf.d/90-quota.conf.j2
dest: /etc/dovecot/conf.d/90-quota.conf
mode: "644"
notify: Reload dovecot service

View file

@ -0,0 +1,17 @@
# {{ 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
}
}