goldstift's 2 cent on technology and software development

Navigation

Postfix and /etc/hosts

The following post is actually a note2self as I stumbled over this problem and wanted to create a reminder for myself and others with similar issues.

Scenario

"master" is the host machine for multiple virtual machines (in my case they are run and managed via "libvirt"). One of these virtual machines is "mail-host" which holds a postfix mailserver. All of the machines are using an externally managed DNS server. The virtual machines are only available to the outside world via NAT. They don't have public IP addresses and therefore aren't known to the external DNS server.

The last point is actually the reason for this post:

How do I configure postfix to forward mails for "example.org" to another server if DNS states that localhost is "example.org"?

Go to "Postfix and /etc/hosts"

My next Conferences