I have a dedicated server running Linux (CentOS)
I have two domains on the server example1.com and example2.com
example1.com has the website hosted on the server but it uses a different server for its email. So the MX record for example1.com points to another commercial server (demon internet) who handle the email then forward it to the customers exchange server.
However the second domain example2.com needs to send emails to example1.com but these do not arrive. After some head scratching I have come to the conclusion that the dedicated server is checking to see if example1.com is local , deciding it is because the website is hosted on the server, it is then trying to deliver the email to the dedicated server. This fails becasue the dedicated server isn't storing the email for example1.com
Is there a way I can tell the dedicated server that when it has email for example1.com from example2.com to send the mail on to the internet where it will then pick up the correct MX record and forward it to demons mail and onto the customer.