Fixed #15 => $myhostname is taken from machine FQDN (use '-h' in docker to set it)

This commit is contained in:
Thomas VIAL 2015-08-19 10:13:56 +02:00
parent 920ac36bad
commit 725d648708
2 changed files with 1 additions and 2 deletions

View file

@ -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

View file

@ -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