Setup nftables for mailserver_postfix

This commit is contained in:
Tunui Franken 2024-09-28 11:40:02 +02:00
parent 0f6bc98576
commit b933680621
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1 @@
tcp dport {25, 587} accept comment "Allow SMTP/submission from all"

View file

@ -0,0 +1,4 @@
---
dependencies:
- role: setup_nftables

View file

@ -39,3 +39,11 @@
group: root
mode: "644"
notify: Restart postfix service
- name: Allow incoming SMTP/submission
become: true
ansible.builtin.copy:
src: nftables/input.d/smtp-submission.conf
dest: /etc/nftables/input.d/smtp-submission.conf
mode: 0640
notify: Reload nftables service