mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
2527ebfaf2
add postfix service quota check check-for-changes on quotas setquota command fix checkforchanges quota addquota verify user exists add setquota in setup.sh merging addquota into setquota test quota commands add ldap tests for dovecot quota fix smtp only quota postfix rules test postfix conf add quota test integration add quota exceeded test add wait analyze fix tests fix setup typo add test fixes fix error output wip update startup rules fix setup fix setup tests fix output commands remove quota on remove user try to fix sync limit mails check if file exists fix path change used quota user fix post size check if quota file exists update tests configure virtualmailbox limit for dovecot last fix fix quota expr relax dovecot tests auto create dovecot-quotas fix dovecot apply quota test wip quota warning trying to fix get dovadm quota dovecot applies fix fix quota warning lda path test count mail on quota fix quota warning permissiosn fix test
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
plugin {
|
||
# debug quota using `doveadm quota get -u user@domain`
|
||
# recompute quota using `doveadm quota recalc -u user@domain`
|
||
|
||
# Track the current quota usage in Dovecot’s index files.
|
||
quota = count:User quota
|
||
|
||
# Use virtual sizes for count
|
||
quota_vsizes = yes
|
||
|
||
# define the maximum message size to be saved, sync with postfix
|
||
quota_max_mail_size = 10000M
|
||
|
||
# default quota per mailbox, sync with postfix
|
||
quota_rule = *:storage=128M
|
||
|
||
# allow user to delete messages
|
||
quota_rule2 = Trash:storage=+50M
|
||
|
||
quota_grace = 10%%
|
||
# 10% is the default
|
||
quota_warning = storage=95%% quota-warning 95 %u %d
|
||
quota_warning2 = storage=80%% quota-warning 80 %u %d
|
||
quota_warning3 = -storage=100%% quota-warning below %u %d # user is no longer over quota
|
||
|
||
|
||
quota_status_success=DUNNO
|
||
quota_status_nouser=DUNNO
|
||
quota_status_overquota = "552 5.2.2 Mailbox is full"
|
||
}
|
||
|
||
service quota-warning {
|
||
executable = script /usr/local/bin/quota-warning.sh
|
||
unix_listener quota-warning {
|
||
user = dovecot
|
||
group = dovecot
|
||
mode = 0660
|
||
}
|
||
}
|
||
|
||
# allow postfix to query quota
|
||
service quota-status {
|
||
executable = quota-status -p postfix
|
||
inet_listener {
|
||
port = 65265
|
||
# You can choose any port you want
|
||
}
|
||
client_limit = 1
|
||
}
|
||
|