Add rules for local mail relay service.

This commit is contained in:
Christoph 2017-04-22 13:53:36 +02:00
parent 99c8301305
commit 528b43ff11
4 changed files with 43 additions and 0 deletions

View File

@ -409,6 +409,11 @@ http_ports="$standard_http_ports"
# - Mail Services # - Mail Services
# ====== # ======
# - SMTP server (i.e. mail relay service) Gateway
# -
local_smtp_service=false
# - Mailserver (SMTP(POP/IMAP) Gateway # - Mailserver (SMTP(POP/IMAP) Gateway
# - # -
# - NOT YET IMPLEMENTED # - NOT YET IMPLEMENTED

View File

@ -392,6 +392,11 @@ http_ports="$standard_http_ports"
# - Mail Services # - Mail Services
# ====== # ======
# - SMTP server (i.e. mail relay service) Gateway
# -
local_smtp_service=false
# - Mailserver (SMTP(POP/IMAP) Gateway # - Mailserver (SMTP(POP/IMAP) Gateway
# - # -
# - NOT YET IMPLEMENTED # - NOT YET IMPLEMENTED

View File

@ -1651,6 +1651,22 @@ else
fi fi
# ---
# - SMTP (Relay) Service Gateway
# ---
echononl "\t\tSMTP (Relay) Service Gateway (only on local network)"
if $local_smtp_service ; then
for _dev in ${local_if_arr[@]} ; do
$ip6t -A INPUT -p tcp -i $_dev --dport $standard_smtp_port -m conntrack --ctstate NEW -j ACCEPT
done
echo_done
else
echo_skipped
fi
# --- # ---
# - Mail User Services smtps/pop(s)/imap(s) only out # - Mail User Services smtps/pop(s)/imap(s) only out
# --- # ---

View File

@ -2074,6 +2074,23 @@ else
fi fi
# ---
# - SMTP (Relay) Service Gateway
# ---
echononl "\t\tSMTP (Relay) Service Gateway (only on local network)"
if $local_smtp_service ; then
for _dev in ${local_if_arr[@]} ; do
$ipt -A INPUT -p tcp -i $_dev --dport $standard_smtp_port -m conntrack --ctstate NEW -j ACCEPT
done
echo_done
else
echo_skipped
fi
# --- # ---
# - Mail User Services smtps/pop(s)/imap(s) only out # - Mail User Services smtps/pop(s)/imap(s) only out
# --- # ---