diff --git a/conf/main_ipv4.conf.sample b/conf/main_ipv4.conf.sample index e20e099..63989a3 100644 --- a/conf/main_ipv4.conf.sample +++ b/conf/main_ipv4.conf.sample @@ -409,6 +409,11 @@ http_ports="$standard_http_ports" # - Mail Services # ====== +# - SMTP server (i.e. mail relay service) Gateway +# - +local_smtp_service=false + + # - Mailserver (SMTP(POP/IMAP) Gateway # - # - NOT YET IMPLEMENTED diff --git a/conf/main_ipv6.conf.sample b/conf/main_ipv6.conf.sample index 5dfb10f..edde3b6 100644 --- a/conf/main_ipv6.conf.sample +++ b/conf/main_ipv6.conf.sample @@ -392,6 +392,11 @@ http_ports="$standard_http_ports" # - Mail Services # ====== +# - SMTP server (i.e. mail relay service) Gateway +# - +local_smtp_service=false + + # - Mailserver (SMTP(POP/IMAP) Gateway # - # - NOT YET IMPLEMENTED diff --git a/ip6t-firewall-gateway b/ip6t-firewall-gateway index 7e97aa6..8a4f795 100755 --- a/ip6t-firewall-gateway +++ b/ip6t-firewall-gateway @@ -1651,6 +1651,22 @@ else 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 # --- diff --git a/ipt-firewall-gateway b/ipt-firewall-gateway index fe6d679..dd99dab 100755 --- a/ipt-firewall-gateway +++ b/ipt-firewall-gateway @@ -2074,6 +2074,23 @@ else 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 # ---