The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Conflict with office365

Discussion in 'E-mail Discussions' started by triven, May 28, 2017.

  1. triven

    triven Registered

    Joined:
    May 28, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    cPanel Access Level:
    Root Administrator
    Hi - I have a php web application on inmotion hosting and email server on office365. My application was taking long time to send emails from office365 so I created one email account on inmotion hosting . As a result now email sending from my application is now quik but I am not able to receive emails to my own domain (other domain it works fine). After searching a bit on google I checked mx record on inmotion hosting and found mydomain.com is listed a highest priority(0) and Email Routing is set as Local. I added outlook.office365.com as priority 1 and changed Email routing as Remote. Now I receive emails on my domain in junk folder. Please help
     
  2. 24x7serversecurity

    24x7serversecurity Active Member

    Joined:
    Aug 31, 2015
    Messages:
    36
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you mean the emails sent from your server delivers to Junk Folder? Or the other external emails.

    In case of the emails from your server, Enable SPF and DKIM for your domain and add include:spf.protection.outlook.com in the SPF TXT record, so that the emails from your server can get authenticated by the Office365 servers.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,296
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you provide some more information on this issue? For instance, if I understand correctly, everything is working correctly except emails sent to your email accounts (as hosted on a remote mail server) are stored in your JUNK folder? What steps are you taking to reproduce this issue?

    Thank you.
     
  4. triven

    triven Registered

    Joined:
    May 28, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    cPanel Access Level:
    Root Administrator
    1) Email originate from a php application hosted at Inmotion server (From: foo@contoso.tld To:bar@contoso.tld).
    2) Email received as spam in o365 inbox.

    -----------
    Setting at Inmotion hosting cpanel:
    MX:contoso-com.mail.protection.outlook.com
    TXT: v=spf1 include:spf.protection.outlook.com -all
    Email Routing:Remote Mail Exchanger

    please let me know if you need more details.
     
    #4 triven, May 30, 2017
    Last edited by a moderator: May 31, 2017
  5. 24x7serversecurity

    24x7serversecurity Active Member

    Joined:
    Aug 31, 2015
    Messages:
    36
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    In SPF records, add your domain's A record, as you are using a php application to send emails.
    So the SPF would looks like:

    TXT: v=spf1 a mx include:spf.protection.outlook.com -all
     
    cPanelMichael likes this.
Loading...

Share This Page