From 3a64b3ca9858563179eabd9d5fab4d1aac2ee316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20L=C3=BCke?= Date: Fri, 8 Sep 2023 23:22:08 +0200 Subject: [PATCH] allow mailserver to relay from connected docker networks let's hope it's not an open relay... --- dms/mailserver.env | 4 ++-- env.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dms/mailserver.env b/dms/mailserver.env index d02b736..05d6ee3 100644 --- a/dms/mailserver.env +++ b/dms/mailserver.env @@ -66,7 +66,7 @@ UPDATE_CHECK_INTERVAL=1d # host => Add docker container network (ipv4 only) # network => Add all docker container networks (ipv4 only) # connected-networks => Add all connected docker networks (ipv4 only) -PERMIT_DOCKER=none +PERMIT_DOCKER=connected-networks # Set the timezone. If this variable is unset, the container runtime will try to detect the time using # `/etc/localtime`, which you can alternatively mount into the container. The value of this variable @@ -339,7 +339,7 @@ POSTFIX_REJECT_UNKNOWN_CLIENT_HOSTNAME=0 # ipv6 => Use only IPv6 traffic. # # Note: More details at http://www.postfix.org/postconf.5.html#inet_protocols -POSTFIX_INET_PROTOCOLS=all +POSTFIX_INET_PROTOCOLS=ipv4 # Choose TCP/IP protocols for dovecot to use # **all** => Listen on all interfaces diff --git a/env.sh b/env.sh index 28742eb..64e3e6f 100644 --- a/env.sh +++ b/env.sh @@ -1 +1,2 @@ alias nextcloud-occ='docker exec -it -u 33 nextcloud-app /var/www/html/occ' +alias mail-setup='docker exec -it mailserver setup'