From f14945c52d760ce472073c8df3b3451863416c00 Mon Sep 17 00:00:00 2001 From: NorseGaud Date: Sun, 6 Mar 2022 14:52:38 -0500 Subject: [PATCH] issues/2023: postfix is not able to install due to incorrect hostname in container --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 60a7acfc..23e5a000 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,7 +41,12 @@ RUN \ apt-get -qq update && \ apt-get -qq install apt-utils 2>/dev/null && \ apt-get -qq dist-upgrade && \ + echo "applying workaround for ubuntu/postfix bug described in https://github.com/docker-mailserver/docker-mailserver/issues/2023#issuecomment-855326403" && \ + mv /bin/hostname{,.bak} && \ + echo "echo docker-mailserver.invalid" > /bin/hostname && \ + chmod +x /bin/hostname && \ apt-get -qq install postfix && \ + mv /bin/hostname{.bak,} && \ apt-get -qq --no-install-recommends install \ # A - D altermime amavisd-new apt-transport-https arj binutils bzip2 bsd-mailx \