Add dovecot quota config
This commit is contained in:
parent
9ce0ae045f
commit
658c1ce9b4
2 changed files with 25 additions and 0 deletions
|
@ -126,3 +126,11 @@
|
||||||
backrefs: true
|
backrefs: true
|
||||||
line: '\1mail_plugins = $mail_plugins sieve'
|
line: '\1mail_plugins = $mail_plugins sieve'
|
||||||
notify: Reload dovecot service
|
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
|
||||||
|
|
17
roles/mailserver_dovecot/templates/conf.d/90-quota.conf.j2
Normal file
17
roles/mailserver_dovecot/templates/conf.d/90-quota.conf.j2
Normal 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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue