From d314a5197b2ab2e582aba8efb32f67475475ef15 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Wed, 17 Jul 2024 05:08:39 -0400 Subject: [PATCH] allow email ports --- playbooks/roles/mail/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/playbooks/roles/mail/tasks/main.yml b/playbooks/roles/mail/tasks/main.yml index 81ced1d..822357a 100644 --- a/playbooks/roles/mail/tasks/main.yml +++ b/playbooks/roles/mail/tasks/main.yml @@ -78,3 +78,15 @@ state: restarted enabled: true name: docker-compose@mail + +- name: Allow SMTP + ansible.builtin.ufw: + rule: allow + port: "465" + proto: "tcp" + +- name: Allow IMAP + ansible.builtin.ufw: + rule: allow + port: "993" + proto: "tcp"