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"