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: