mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Fixed #15 => $myhostname is taken from machine FQDN (use '-h' in docker to set it)
This commit is contained in:
parent
920ac36bad
commit
725d648708
|
@ -6,7 +6,7 @@ append_dot_mydomain = no
|
||||||
readme_directory = no
|
readme_directory = no
|
||||||
|
|
||||||
# Basic configuration
|
# Basic configuration
|
||||||
myhostname = DOCKER_MAIL_DOMAIN
|
# myhostname =
|
||||||
alias_maps = hash:/etc/aliases
|
alias_maps = hash:/etc/aliases
|
||||||
alias_database = hash:/etc/aliases
|
alias_database = hash:/etc/aliases
|
||||||
mydestination = localhost.localdomain, localhost
|
mydestination = localhost.localdomain, localhost
|
||||||
|
|
|
@ -29,7 +29,6 @@ cp /tmp/postfix/virtual /etc/postfix/virtual
|
||||||
echo "Postfix configurations"
|
echo "Postfix configurations"
|
||||||
postmap /etc/postfix/vmailbox
|
postmap /etc/postfix/vmailbox
|
||||||
postmap /etc/postfix/virtual
|
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
|
cat /tmp/vhost.tmp | sort | uniq >> /etc/postfix/vhost && rm /tmp/vhost.tmp
|
||||||
|
|
||||||
# Adding SSL certificate if provided in 'postfix/ssl' folder
|
# Adding SSL certificate if provided in 'postfix/ssl' folder
|
||||||
|
|
Loading…
Reference in a new issue