I’m hoping this one is obvious to someone
For reasons unrelated to the thread we found a need to segregate certain parts of our web services across multiple machines.
I used to have 1 Virtualmin install hosting website / email / Moodle / blog, the whole domain pointed here to the top level.
Now I have 3 machines , the top level “mydomain.com” is on server 1, server 2 has “mail.mydomain.com” (The mail server, with fresh mx records etc) and server 3 has “work.mydomain.com” with the blog and Moodle.
DNS is @ godaddy, and inbound / outbound mailing from the mailserver works like a charm.
All 3 servers run Virtualmin, and were made by taking a single backup, and restoring it to the two other machines with fresh Virtualmin installs. I then purged the various components held elsewhere so each system only contained the parts it was to distribute. All 3 servers share a LAN and a common firewall.
So the transfer went great with one single catch, in php there is a function called mail() that is used to send email messages. That command doesn’t produce any results on server 1, and 3 now. It continues to work fine on server 2, the mail server.
In the error logs, the outbound server throws a message containing
" firstname.lastname@example.org, email@example.com, relay=local, delay=0.78, delays=0.57/0.01/0/0.2, dsn=5.1.1, status=bounced (unknown user: “firstname.lastname@example.org”
I think it is saying that the server is trying to handle the message, rather than forwarding it to the remote server @ mail.mydomain.com
Any idea how I can tell it to route to the new mail server for delivery?
And assuming I get that far, how do I tell the receiving server to allow it?
A tutorial would be fine, but I’d sure love to know where I have flubbed Im sure its my fault somehow!