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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user