Microsoft Office 365 Integration

Overview

  1. Configure the hosted email server to accept email from Metadefender Email server.

  2. Configure Metadefender Email to relay out to hosted email server.

  3. Update MX record to point to Metadefender Email server.

Detailed Steps

Configure the hosted email server to accept email from Metadefender Email server

  1. Goto https://portal.office.com and login with your Office365 credentials.

  2. Go to Office 365 Portal > Admin > Admin Centers > Exchange. Once the Exchange Admin has opened, go to mail flow > connectors and click + to add a new connector.

  3. Select From: Partner organization and To: Office 365, then click Next

    images/download/attachments/20220957/image2016-8-17_10_24_41.png

  4. Specify a name for the connector (in this case Metadefender Email) and ensure that the option 'Turn it on' is checked. Then click Next.

    images/download/attachments/20220957/image2016-8-17_10_26_46.png

  5. Select 'Use the sender's domain' and click Next.

    images/download/attachments/20220957/image2016-8-19_15_0_54.png

  6. Click on the +.

    images/download/attachments/20220957/image2016-8-19_15_1_41.png

  7. Enter * as domain and click OK. Then c lick Next.

    images/download/attachments/20220957/image2016-8-19_15_2_31.png

  8. Select 'Reject email messages if they aren't sent over TLS' and 'Reject email messages if they aren't sent from within this IP address range', then click +

    images/download/attachments/20220957/image2016-8-19_15_4_59.png

  9. Specify your public IP address (in this case ( 213.149.186.214) and click OK. Then click Next.

    images/download/attachments/20220957/image2016-8-17_10_30_11.png

  10. Verify connector properties and click Save to save the connector.

    images/download/attachments/20220957/image2016-8-19_15_7_40.png

Configure Metadefender Email to relay out to hosted email server.

  1. Obtain your MX record address by going to https://portal.office.com > Admin > Settings > Domain and click on your domain. Copy the MX Record value to the clipboard.

  2. Connect to the Mail agent server and run the following REST POST request (using ,for example, POSTMAN) to http://localhost:8000/MailAgent/Settings. Specify the MX record address obtained in the previous step and enter it in the EmailRelayOutServer value:

    {
    "EmailRelayInDirection": 0,
    "EmailRelayInLocalDomains": [],
    "EmailRelayInPort": 25,
    "EmailRelayOutPassword": null,
    "EmailRelayOutPort": 25,
    "EmailRelayOutServer": "<MX record address>",
    "EmailRelayOutUseTls": true,
    "EmailRelayOutUsername": null
    }
  3. Verify routing settings by sending an email to a Office365 recipient directly to the Metadefender Email server and verify that it arrives correctly in the recipient inbox.

Update MX record to point to Metadefender Email server.

Refer to your Internet domain registrar for the details how to change MX record to point to Metadefender Email IP address. Verify email routing by sending an email to a Office365 recipient.

Make sure that your MX record changes have propagated before verifying email routing.