Also allow output smtp-submission
This commit is contained in:
parent
58d5ef7ed0
commit
0ddb75d4c5
2 changed files with 7 additions and 3 deletions
|
@ -0,0 +1 @@
|
||||||
|
tcp dport {25, 587} accept comment "Allow SMTP/submission to all"
|
|
@ -40,10 +40,13 @@
|
||||||
mode: "644"
|
mode: "644"
|
||||||
notify: Restart postfix service
|
notify: Restart postfix service
|
||||||
|
|
||||||
- name: Allow incoming SMTP/submission
|
- name: Allow incoming and outgoing SMTP/submission
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: nftables/input.d/smtp-submission.conf
|
src: "nftables/{{ item }}.d/smtp-submission.conf"
|
||||||
dest: /etc/nftables/input.d/smtp-submission.conf
|
dest: "/etc/nftables/{{ item }}.d/smtp-submission.conf"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
notify: Reload nftables service
|
notify: Reload nftables service
|
||||||
|
loop:
|
||||||
|
- input
|
||||||
|
- output
|
||||||
|
|
Loading…
Reference in a new issue