Fix error creating 'smtpd_additional_listen_port_arr'.

This commit is contained in:
Christoph 2025-01-27 23:10:29 +01:00
parent e6984a622c
commit aab8585d90
2 changed files with 4 additions and 4 deletions

View File

@ -1756,9 +1756,9 @@ fi
echononl "\t\tMail (additional smtp ports IN)"
if [[ ${#smtpd_additional_listen_ports[@]} -gt 0 ]] ; then
if [[ ${#smtpd_additional_listen_port_arr[@]} -gt 0 ]] ; then
for _port in ${smtpd_additional_listen_ports[@]} ; do
for _port in ${smtpd_additional_listen_port_arr[@]} ; do
for _dev in ${ext_if_arr[@]} ; do
$ip6t -A INPUT -i $_dev -p tcp --dport $_port -m state --state NEW -j ACCEPT
if $kernel_forward_between_interfaces ; then

View File

@ -1922,9 +1922,9 @@ fi
echononl "\t\tMail (additional smtp ports IN)"
if [[ ${#smtpd_additional_listen_ports[@]} -gt 0 ]] ; then
if [[ ${#smtpd_additional_listen_port_arr[@]} -gt 0 ]] ; then
for _port in ${smtpd_additional_listen_ports[@]} ; do
for _port in ${smtpd_additional_listen_port_arr[@]} ; do
for _dev in ${ext_if_arr[@]} ; do
$ipt -A INPUT -i $_dev -p tcp --dport $_port -m state --state NEW -j ACCEPT
if $kernel_activate_forwarding ; then