I am testing two mail servers that live on two (virtual) machines with compiled domain names for emails. When one of the servers needs to send an email to the other, it apparently does a DNS lookup to record the recipientβs MX record, which does not point the sender server to the correct IP address, regardless of which IP / domain mapping I set to /etc/hosts .
So should I install a DNS server and create a custom MX record for the recipient domain? How to do it on Ubuntu or is there an easier way?
source share