Skip to content

Hostname override fixes for docker option --net=host in conjunction with OVERRIDE_HOSTNAME#517

Merged
tomav merged 5 commits intodocker-mailserver:masterfrom
flole:master
Feb 13, 2017
Merged

Hostname override fixes for docker option --net=host in conjunction with OVERRIDE_HOSTNAME#517
tomav merged 5 commits intodocker-mailserver:masterfrom
flole:master

Conversation

@flole
Copy link
Copy Markdown
Contributor

@flole flole commented Feb 10, 2017

I have noticed that my emails contain the hostname of my docker host when I use the docker option --net=host with the env-var OVERRIDE_HOSTNAME. That is because postfix, dovecot and opendmarc user the hostname command to retrieve the name of host. Until now the hostname was only overwritten for amavis, but these changes will overwrite it for all mentioned services.

@tomav tomav merged commit 7e4e366 into docker-mailserver:master Feb 13, 2017
@tomav
Copy link
Copy Markdown
Contributor

tomav commented Feb 13, 2017

Thanks @flole

RichardFevrier pushed a commit to RichardFevrier/docker-mailserver that referenced this pull request Aug 26, 2019
…ith OVERRIDE_HOSTNAME (docker-mailserver#517)

* Fixed wrong mail headers when using OVERRIDE_HOSTNAME by setting the the hostname explicitly

* Added tests and fixed hostname in dovecot conf

* Added missing tests

* Improved function naming and task notification message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants