Setup nftables for mailserver_dovecot
This commit is contained in:
parent
b933680621
commit
998390668e
3 changed files with 13 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
tcp dport {143, 993} accept comment "Allow IMAP/IMAPS from all"
|
4
roles/mailserver_dovecot/meta/main.yml
Normal file
4
roles/mailserver_dovecot/meta/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
dependencies:
|
||||
- role: setup_nftables
|
|
@ -280,3 +280,11 @@
|
|||
loop:
|
||||
- spam
|
||||
- ham
|
||||
|
||||
- name: Allow incoming IMAP/IMAPS
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: nftables/input.d/imap-imaps.conf
|
||||
dest: /etc/nftables/input.d/imap-imaps.conf
|
||||
mode: 0640
|
||||
notify: Reload nftables service
|
||||
|
|
Loading…
Reference in a new issue