feat(quota_status): use a unix socket for postfix

There is no requirement to open an additional port so that postfix can
can check the dovecot quota.

The socket is created in postfix's service directory with dovecot as the
owner and vmail as the group. setting it this way enables ls command to
display who the owner is for debugging purposes.
Postfix is a member of group vmail.

MR !7
This commit is contained in:
2022-02-18 11:35:06 +09:30
parent 18944ab54d
commit 8f938bd3ce

View File

@ -75,10 +75,13 @@ service quota-warning {
}
service quota-status {
executable = quota-status -p postfix
inet_listener {
port = 12340
# You can choose any port you want
unix_listener /var/spool/postfix/private/quota {
user = dovecot
group = vmail
mode = 0660
}
client_limit = 1
}