From 54aecb290e2a0d28a1b3c7f0821a3dd0ad15dad8 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Mon, 4 Nov 2024 20:06:04 +0100 Subject: [PATCH] Allow IMAPS and SIEVE ports. --- roles/role_deploy_dovecot/tasks/main.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/roles/role_deploy_dovecot/tasks/main.yml b/roles/role_deploy_dovecot/tasks/main.yml index c1fbd65..03a0cec 100644 --- a/roles/role_deploy_dovecot/tasks/main.yml +++ b/roles/role_deploy_dovecot/tasks/main.yml @@ -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: