Docker Mail Server not use local DNS
-
Hi all,
I've been looking into an error that keeps coming up. The mail container running on our app server isn't delivering email to a mail server on our local network.
When it looks up the destination, it gets our public (external) IP address instead of the internal one. The server's DNS is set to our local DNS server, but the container seems to be ignoring that and resolving to the outside address. Hairpin NAT is turned on, but that hasn't fixed it.
I need the container to use only our local DNS server so it resolves the internal address. not sure what or why the overriding that.
Logs

Logs

Local system DNS

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login