From 4b7d4ec6ab5f9f0dd0a42af56bb1b9820e4b5cf9 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Sat, 29 Feb 2020 01:22:11 -0500 Subject: [PATCH] Disable dovecot quota service on 127.0.0.1 --- files/patches | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/files/patches b/files/patches index a06f487..44711de 100755 --- a/files/patches +++ b/files/patches @@ -19,9 +19,10 @@ set -eu # fail on any errors or undefined variables edit() { local sed; ::block sed-dsl; sed -i -e "$sed" "$@"; } sed-dsl() { sed."$@"; } sed.sub() { sed+="s~$1~$2~${3-}"$'\n'; } -sed.del() { sed+="/$1/d"$'\n'; } +sed.del() { sed+="${1+/$1/}d"$'\n'; } sed.append() { sed+='$a'; ((!$#))||__sedline "$@"; ::block __sedline; sed+=$'\n'; } sed.after() { sed+='/'"$1"'/a'; (($#<2))||__sedline "${@:2}"; ::block __sedline; sed+=$'\n'; } +sed.range() { sed+="/$1/,/$2/ {"$'\n'; ::block sed-dsl; sed+=$'}\n'; } __sedline() { sed+="${*/#/\\$'\n'}"; } # DSL syntax macros: minified runtime copied from https://github.com/bashup/scale-dsl @@ -118,6 +119,14 @@ haraka_web=$sockdir/haraka/web.sock '"rspamc" ["-h" "'"$rspam_web"'" ' }} +# Disable dovecot quota service on localhost + +~ edit /etc/dovecot/conf.d/90-quota.conf; {{ + + range 'inet_listener' '}'; {{ + - del + }} +}} + # Haraka plugins need to use sockets for LMTP and quota instead of ports ~ edit /opt/haraka-smtp/plugins/rcpt_database.js; {{