I am using both Exim and Office 365 to send email - the server sends automated mails from an application using Exim and Office 365 handles day to day user and incoming email etc.
I am getting some mail from the server (i.e. from Exim) rejected due to "mx record not found" - there is an MX record but I suspect the issue is it points to Office 365 hence it is seen to be invalid when doing a lookup on the server.
Here is the bounce I get:
firstname.lastname@example.org SMTP error from remote mail server after RCPT TO:<email@example.com>: host mail.host.com [184.108.40.206]: 554 5.1.8 <firstname.lastname@example.org>: Sender address rejected: MX record not found ------ This is a copy of the message, including all the headers. ------ Return-path: <email@example.com> Received: from apache by web01.domain.com with local (Exim 4.72) (envelope-from <firstname.lastname@example.org>) id 1WYYsD-0004AX-QJ for email@example.com; Fri, 11 Apr 2014 10:39:53 +0000 Date: Fri, 11 Apr 2014 10:39:53 +0000 Message-Id: <E1WYYsD-0004AX-QJ@web01.domain.com> To: firstname.lastname@example.org Subject: Password reset X-PHP-Originating-Script: 501:password-forgotten.php From: email@example.com
Here are my A and MX records:
A domain.com 0 3600 A 220.127.116.11 www.domain.com 0 3600 A 18.104.22.168 web01.domain.com 0 3600 A 22.214.171.124 MX domain.com 0 3600 MX domain-com.mail.protection.outlook.com
Mail from the server comes from web01.domain.com so can I add another MX record to point web01.domain.com to domain.com for example? How can I fix this whilst continuing to use two mail "providers"?