Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Feb 13, 2017

Conversation

flole
Copy link
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
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.

None yet

2 participants