This commit is contained in:
Elizabeth Hunt 2024-07-17 02:04:54 -07:00
parent eb7b20ebbc
commit 5593f9530f
Signed by: simponic
GPG Key ID: 2909B9A7FF6213EE
2 changed files with 20 additions and 0 deletions

View File

@ -78,3 +78,15 @@
state: restarted state: restarted
enabled: true enabled: true
name: docker-compose@mail 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"

View File

@ -22,6 +22,8 @@ services:
- ROUNDCUBEMAIL_DEFAULT_PORT={{ roundcube_default_port }} - ROUNDCUBEMAIL_DEFAULT_PORT={{ roundcube_default_port }}
- ROUNDCUBEMAIL_SMTP_SERVER={{ roundcube_smtp_host }} - ROUNDCUBEMAIL_SMTP_SERVER={{ roundcube_smtp_host }}
- ROUNDCUBEMAIL_SMTP_PORT={{ roundcube_smtp_port }} - ROUNDCUBEMAIL_SMTP_PORT={{ roundcube_smtp_port }}
networks:
- roundcube
mailserver: mailserver:
image: ghcr.io/docker-mailserver/docker-mailserver:latest image: ghcr.io/docker-mailserver/docker-mailserver:latest
@ -80,3 +82,9 @@ services:
- PERMIT_DOCKER=host #fix SPF fail by copying the IPv4 of the docker container into the postfix cfg - PERMIT_DOCKER=host #fix SPF fail by copying the IPv4 of the docker container into the postfix cfg
extra_hosts: extra_hosts:
- {{ ldap_server }}:{{ ldap_intranet }} - {{ ldap_server }}:{{ ldap_intranet }}
networks:
- mailserver
networks:
mailserver:
roundcube: