Microsoft 365

How to send mail notifications to Office365

If you are an Office365 customer there are a number of steps you need to configure to send mail notifications from your applications.

3 minute read

If you are an Office 365 customer there are a number of steps you need to configure to send mail notifications from your applications or Unitrends Appliance to your Office365 domain mailboxes. First off you won’t forget to backup your Office 365 environment, right?

Office 365 supports these options for sending email from an application:

  1. Authenticate your device or application directly with an Office 365 mailbox (SMTP client submission)
  2. Send mail direct from your printer or application to Office 365 (Direct send)
  3. Configure a connector to send mail using Office 365 (SMTP relay)

Unitrends appliance currently cant use option Option 1 out of the box.

So in this blog post we will explain how to use Option 2 (Direct Send) and Option 3 (SMTP Relay) and the differences.

Direct Send

If you just want to send mail alerts and reports to your Office365 mailboxes this method is the easiest one as you dont have to configure anything else in Office365. But it will not work for sending mails to external mail addresses like user@gmail.com or other domains.

To configure, you only need to find out the MX DNS register for your domain and setup it in your application settings.

You can find it using powershell:

PS> Resolve-DnsName -Name unitrends.com -Type MX

Name                                     Type   TTL   Section    NameExchange                              Preference
----                                     ----   ---   -------    ------------                              ----------
unitrends.com                            MX     9     Answer     unitrends-com.mail.protection.outlook.com 0

In this scenario to send alerts to our @unitrends.com user mailboxes we just need to configure unitrends-com.mail.protection.outlook.com as SMTP.

 

 

And that is all! Now you should be able to receive notifications in your Office365 mailboxes from your appliance or applications.

 

SMTP Relay

This method allows to send mail to other domains but it requires your Office365 administrator to create a mail flow connector that allows relay all mails that are coming from the public IP address used by the appliance to connect to Office365.

    1. You can find out the public IP address being used by your appliance to connect to Internet running any of these commands inside the appliance console:
[root@ueb08 ~]# curl -s icanhazip.com
37.134.134.124
[root@ueb08 ~]# curl -s curlmyip.com
37.134.134.124
[root@ueb08 ~]# curl wgetip.com
37.134.134.124
[root@ueb08 ~]# curl -s wgetip.com
37.134.134.124
    1. Login to Office365 Exchange Admin Center
    2. Select Mail Flow -> Connectors
    3. Add new connector
      1. Select from ” Your Organization to Office365″
    1. Give a name to the connector
    1. Select identify by verifying IP address and enter your public IP Address.

 

    1. Save

 

Once this is done you can configure Unitrends Appliance to use your MX DNS register as SMTP Server to send mails to Office365 mailboxes and also to external domains.

PS> Resolve-DnsName -Name unitrends.com -Type MX

SMTP Server: unitrends-com.mail.protection.outlook.com

 

Check you are not listed in Spam Databases

Office365 will block mails if your IP is blacklisted in a spam database.

IP ranges normally assigned to ISP end-user broadband connections are blacklisted as they should not be delivering unauthenticated SMTP email to any Internet mail server using these methods.

You can use mxtoolbox.com website to check if your IP is listed and request removal.

 

See Everything Unitrends Backup Appliances Have to Offer

Appliances range from 2-120TB and are available in high-performance desktop and robust rackmount formfactors. Regardless of the use case, there’s a backup appliance that caters to it.

Request a Demo