Setup nftables for mailserver_postfix
This commit is contained in:
parent
0f6bc98576
commit
b933680621
3 changed files with 13 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
tcp dport {25, 587} accept comment "Allow SMTP/submission from all"
|
4
roles/mailserver_postfix/meta/main.yml
Normal file
4
roles/mailserver_postfix/meta/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
dependencies:
|
||||
- role: setup_nftables
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue