docker-mailbox icon indicating copy to clipboard operation
docker-mailbox copied to clipboard

Postfix can't resolve MX

Open jeroenlammerts opened this issue 9 years ago • 2 comments

I tried to send an email with telnet localhost 25

In /var/log/mail I get this error: (Host or domain name not found. Name service error for name=mydomain.com type=MX: Host not found, try again)

It seems that it is related to this issue: http://stackoverflow.com/questions/26585185/postfix-in-docker-container-cant-resolve-mx-unless-it-gets-restarted-once

Some files are not copied to /var/spool/postfix/etc/ like resolv.conf

Running this command once fixed the issue for me service postfix restart

jeroenlammerts avatar May 12 '15 09:05 jeroenlammerts

https://github.com/catatnight/docker-postfix/blob/master/assets/install.sh

This image is using some other supervisord config for postfix.

jeroenlammerts avatar May 12 '15 10:05 jeroenlammerts

@jeroenlammerts Funny. I am the author of the StackOverflow question, since I ran into the same issue already in another project. Im not sure whats going on there, but at the moment I have some other projects that I want to finish first. I try to get back to this issue soon.

frdmn avatar May 13 '15 06:05 frdmn