From 725d6487085a8dc2c6a3c5265ad6368c2b943bbd Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Wed, 19 Aug 2015 10:13:56 +0200 Subject: [PATCH] Fixed #15 => $myhostname is taken from machine FQDN (use '-h' in docker to set it) --- postfix/main.cf | 2 +- start-mailserver.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/postfix/main.cf b/postfix/main.cf index ef5ee284..261a71ce 100644 --- a/postfix/main.cf +++ b/postfix/main.cf @@ -6,7 +6,7 @@ append_dot_mydomain = no readme_directory = no # Basic configuration -myhostname = DOCKER_MAIL_DOMAIN +# myhostname = alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = localhost.localdomain, localhost diff --git a/start-mailserver.sh b/start-mailserver.sh index f989b25a..e73c4e2d 100644 --- a/start-mailserver.sh +++ b/start-mailserver.sh @@ -29,7 +29,6 @@ cp /tmp/postfix/virtual /etc/postfix/virtual echo "Postfix configurations" postmap /etc/postfix/vmailbox postmap /etc/postfix/virtual -sed -i -r 's/DOCKER_MAIL_DOMAIN/'"$(hostname -d)"'/g' /etc/postfix/main.cf cat /tmp/vhost.tmp | sort | uniq >> /etc/postfix/vhost && rm /tmp/vhost.tmp # Adding SSL certificate if provided in 'postfix/ssl' folder