Setup nftables for mailserver_dovecot

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

View file

@ -0,0 +1 @@
tcp dport {143, 993} accept comment "Allow IMAP/IMAPS from all"

View file

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

View file

@ -280,3 +280,11 @@
loop: loop:
- spam - spam
- ham - 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