I'm testing two mail servers that live on two (virtual) machines with made up domain names for emails. When one of the servers needs to send an email to the other one, it seemingly performs a DNS lookup for the recipient domain's MX record, which doesn't point the sender server to the correct IP, no matter what IP/domain mapping I put in /etc/hosts.
So should I install a DNS server and create a custom MX record for the recipient domain? How do I do this on Ubuntu 12.04 or is there an easier way?
status=deferred (Host or domain name not found. Name service error for name=example.com type=MX: Host not found, try again). Sureexample.comis set to the correct IP inetc/hosts. – Desmond Hume Nov 20 '12 at 13:10disable_dns_lookups = yesto/etc/postfix/main.cfdid the job (smtp_host_lookup = nativedid not). Thanks a bunch. – Desmond Hume Nov 20 '12 at 13:49