Add support for (local) dovecot auth service.

This commit is contained in:
2019-09-03 17:54:46 +02:00
parent f87f7bbda0
commit 051e7da995
5 changed files with 84 additions and 0 deletions

View File

@ -1637,6 +1637,27 @@ else
fi
# ---
# - (local) Dovecot auth service
# ---
echononl "\t\t(local) Dovecot auth service"
if [[ -n "$dovecot_auth_service" ]] && $dovecot_auth_service ; then
if [[ ${#dovecot_auth_allowed_network_arr[@]} -gt 0 ]] && [[ -n "$dovecot_auth_port" ]]; then
for _ip in ${dovecot_auth_allowed_network_arr[@]} ; do
$ipt -A INPUT -p tcp -s $_ip --dport $dovecot_auth_port -m state --state NEW -j ACCEPT
done
echo_done
else
echo_failed
fi
else
echo_skipped
fi
# ---
# - HTTP(S) OUT
# ---