Skip to main content

Remote MX, O365

Comments

11 comments

  • Ian Durey
    After doing some more reading I believe the solution is to create a manualroute in the POSTMAILCOUNT section of exim config: o365_route: driver = manualroute domains = +userdomain.com transport = remote_smtp route_list = * userdomain-com.mail.protection.outlook.com
    Does that seem right?
    0
  • Ian Durey
    I am still getting "host lookup did not complete" on this, so clearly I'm not doing something right. Any help is appreciated.
    0
  • keat63
    I did something similar about a year ago. The domain was hosted on my server, but the emails were all being handled by Google, so a similar scenario. I had to add a few MX entries in the DNS zone for the particular domain.
    0
  • keat63
    Incidentally, I wasn't aware of any issues, and it ran like this for a year, maybe more before the domain was migrated away. How long did you wait for the DNS changes to propagate. This could take 24-48 hours (although a 2 is usually enough I find)
    0
  • Ian Durey
    Thanks for your reply. I do have the MX record configured properly. It has been like that for several days. I wonder if the issue could be that this domain happens to be the "main" domain of the server?
    0
  • keat63
    Do you have a CNAME entry for 'mail' in the DNS zone Whilst I have these for all the domains on my server, I don't have a mail entry in the DNS zone for that particular domain. Maybe if you left this behind, it's having some bearing on delivery.
    0
  • keat63
    Also, do you have access to the domain properties at registra level. Maybe you could let the registra handle the NS records and make the DNS changes at that end ?
    0
  • cPanelLauren
    If you've properly modified the MX records for the domain to point to Office 365 and added the DNS records they request I'd suggest ensuring that the domain is no longer present in /etc/localdomains and ensure it is present in /etc/remotedomains. The router or any exim customization shouldn't be necessary for this to function.
    0
  • Ian Durey
    ensure it is present in /etc/remotedomains. The router or any exim customization shouldn't be necessary for this to function.

    Confirmed it is in /etc/remotedomains, still getting "host lookup did not complete".
    0
  • Ian Durey
    I believe this has been resolved. The user domain was referencing ns1.userdomain.com and ns2.userdomain.com but didn't have corresponding A records, so the DNS zone didn't actually exist and DNS lookups were failing. I created A records for ns1.userdomain.com and ns2.userdomain.com and looks like DNS is resolving now. Thanks to those who replied.
    0
  • cPanelLauren
    That sounds about right, I'm glad you were able to find a solution! Thank you for letting us know.
    0

Please sign in to leave a comment.