issues/2023: postfix is not able to install due to incorrect hostname in container

This commit is contained in:
NorseGaud 2022-03-06 14:52:38 -05:00
parent d101d0aa0a
commit f14945c52d
No known key found for this signature in database
GPG key ID: FC3D2A556A94E721

View file

@ -41,7 +41,12 @@ RUN \
apt-get -qq update && \ apt-get -qq update && \
apt-get -qq install apt-utils 2>/dev/null && \ apt-get -qq install apt-utils 2>/dev/null && \
apt-get -qq dist-upgrade && \ 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 && \ apt-get -qq install postfix && \
mv /bin/hostname{.bak,} && \
apt-get -qq --no-install-recommends install \ apt-get -qq --no-install-recommends install \
# A - D # A - D
altermime amavisd-new apt-transport-https arj binutils bzip2 bsd-mailx \ altermime amavisd-new apt-transport-https arj binutils bzip2 bsd-mailx \