Skip to main content

Office365 Exchange with cPanel Exim

Comments

3 comments

  • cPanelLauren
    Hello, I believe the following, while working for this portion is actually the issue:
    Any emails which are not slated for an address on the exchange server will then be directed to the smarthost, on which the domain is also correlated with a cPanel account. This also works perfectly.

    my assumption is that you have the domain in /etc/localdomains
    (you've selected local mail exchanger in the dns zone file) - this correlates to the following: [QUOTE] Local Mail Exchanger " The server always accepts mail for this domain. The system will deliver mail to the local mailbox. Note: Choose this option if your server uses smart hosts or another gateway service to filter mail.
    What this means is that any mail sent from the server for internal mail will be considered a local delivery and will not be delivered to the primary MX record. I believe that if you want to use this configuration and be able to send mail local mail, you'd need to set this as the Backup Mail Exchanger, this does mean though that you would have to ensure the lowest priority MX record is the exchange MX [QUOTE] Backup Mail Exchanger " The server functions as a backup mail exchanger. The system will hold mail for this domain until a lower number mail exchanger becomes available. Note: You must configure the primary MX record to point to the appropriate exchanger.
    0
  • benjam1nk
    Thank you for your response. I attempted this solution, but does not appear to solve my issue. When a domain is set to use the backup mail exchanger, any emails sent from the outside world to an address hosted locally will end up in a mail loop between office365 exchange smarthost, and the cpanel mail server, eventually timing out and sending a delivery error the the sender.
    Hello, I believe the following, while working for this portion is actually the issue: my assumption is that you have the domain in /etc/localdomains
    (you've selected local mail exchanger in the dns zone file) - this correlates to the following: What this means is that any mail sent from the server for internal mail will be considered a local delivery and will not be delivered to the primary MX record. I believe that if you want to use this configuration and be able to send mail local mail, you'd need to set this as the Backup Mail Exchanger, this does mean though that you would have to ensure the lowest priority MX record is the exchange MX

    0
  • cPanelLauren
    I believe this is a common issue with split delivery in exchange/Outlook365. Based on some other threads on this should be possible to setup with Office 365's connectors they had the same issue. You might also try routing per user:
    0

Please sign in to leave a comment.