Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Setting up SMTP relays with EXIM and Office 365

Discussion in 'E-mail Discussion' started by Spork Schivago, May 5, 2018.

  1. Spork Schivago

    Spork Schivago Well-Known Member

    Joined:
    Jan 21, 2016
    Messages:
    594
    Likes Received:
    63
    Trophy Points:
    28
    Location:
    corning, ny
    cPanel Access Level:
    Root Administrator
    Hi!

    I've been reading some good articles here on setting up an SMTP relay, but I can't really find what I'm looking for.

    We use IMAP folders, not sure if that matters.

    But I have three domains.

    I want, when we send email to the two of them, it'll check if the email address exists on Exchange 365 server first, if not, forward it to my two domains, check if it exists there, if not, bounce it back to Exchange so it can send a message that the account doesn't exist.

    Is this possible to do?

    I thought I had found an article describing this exact scenario on the net a while back, but I was unable to dig it back up. Should have bookmarked it.

    Thanks!
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,864
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,
    I don't think this will be possible. However, you can setup multiple MX records with different priority to check if it works the way you want..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,755
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Spork Schivago likes this.
  4. Spork Schivago

    Spork Schivago Well-Known Member

    Joined:
    Jan 21, 2016
    Messages:
    594
    Likes Received:
    63
    Trophy Points:
    28
    Location:
    corning, ny
    cPanel Access Level:
    Root Administrator
    That first link looks like the one I want. If I'm reading it right, I do part 1 and then part 2, so mail will go from Exchange (Office 365 Enterprise E3) to cPanel, then with the second part configured properly, it'll bounce back if the address isn't found.

    Seems about right! I figured this wasn't supported, so I do appreciate you taking the time to point me in the right direction. Currently, people are having trouble sending me mail. It bounces, but I have it setup like @24x7server suggested, with the two MX records and different priorities.

    There's multiple problems with this approach though. Microsoft scans the MX record and if it's not just right, it'll fail, so their record has to have priority 0 (highest). And without the connectors, if it don't find the username in the Exchange server, it'll bounce. Mailclients don't seem to like to have two accounts setup with the same domain name, atleast Outlook doesn't.
     
    cPanelMichael likes this.
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,755
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Spork Schivago,

    Feel free to update this thread with the outcome if you decide to try using the solution referenced in the first link.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice