I have a server, let's call it xyz.com. The MX entry for xyz.com points to a 3rd party server, let's call it xyz-mail.com. From xyz.com, I have an application that sends out emails, sometimes to people like firstname.lastname@example.org
. All the emails are received pretty much, except ones going out to @xyz.com. It seems like the server looks locally for a user called joe (or whatever) rather than checking the MX entry and sending the email to the xyz-mail.com server.
The mail server I'm using is sendmail. Does anyone know a solution to my problem?