Files
ansible/roles/postfix/templates/etc_firewall_rules-v4.d_40_postfix.sh.j2
2025-10-10 11:07:34 +00:00

12 lines
417 B
Django/Jinja

# {{ ansible_managed }}
{% if postfix_smtpd_public %}
iptables -A INPUT -p tcp --dport 25 -m comment --comment "postfix-smtp" -j ACCEPT
{% elif postfix_relay %}
iptables -A internal-in -p tcp --dport 25 -m comment --comment "postfix-smtp" -j ACCEPT
{% endif %}
{% if firewall_output_default_drop %}
iptables -A OUTPUT -p tcp --dport 25 -m owner --gid-owner postfix -m comment --comment "smtp" -j ACCEPT
{% endif %}