Add support for (local) dovecot auth service.
This commit is contained in:
@ -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
|
||||
# ---
|
||||
|
Reference in New Issue
Block a user