Allow IMAPS and SIEVE ports.

This commit is contained in:
yohan 2024-11-04 20:06:04 +01:00
parent d90e2ea909
commit 54aecb290e

View File

@ -197,9 +197,6 @@
state: present
network:
- host
ports:
- 993:993/tcp
- 4190:4190/tcp
volume:
- /mnt/volumes/mail_data/data:/home/yohan:z
- /mnt/volumes/mail_data_Sylvie/data:/home/sylvie:z
@ -230,6 +227,18 @@
- imap
- sieve
- name: Allow IMAPS and SIEVE ports
ansible.posix.firewalld:
zone: public
port: "{{ item }}"
permanent: true
immediate: true
state: enabled
become: true
with_items:
- 993/tcp
- 4190/tcp
# A local volume is needed to store restore states
- name: Create /mnt/volumes/restore_states directory if it does not exist
ansible.builtin.file: