I have a dedicated server (Ubuntu 10.04 LTS) with a web application that has a module for sending emails that is slowing down the app.
The current structure is as follow:
Virtual Machine 1 (Application) Domain: app.domain.com IP: X.X.X.X
(I Have setup A records and MX records in /etc/bind/db.domain.com correctly)
But I need to escalate, so the structure should be:
Virtual Machine 1 (Application) Domain: app.domain.com IP: X.X.X.X
Virtual Machine 2 (Email1) Domain: email1.domain.com IP: Y.Y.Y.Y
Virtual Machine 3 (Email2) Domain: email2.domain.com IP: Z.Z.Z.Z
The question is: How to set up MX records on /etc/bind of each Virtual Machine so I can deliver emails with 'domain.com'.
VM 2 and 3 must have same domain as VM 1 but different subdomain and different IP. The problem is that I need to set up MX records on VM2 and VM3 to send emails with domain.com.