System Configurations (‌Mail Server for Office 365)

System Configurations (‌Mail Server for Office 365)


Mail Server for Office 365

SMTP Office 365 Relay Settings

SMTP relay lets Office 365 relay emails on your behalf by using a connector that's configured with your public IP address or TLS a certificate. Setting up a connector makes this a more complicated option.


Settings for Office 365 SMTP relay


TABLE 4

Device or application setting


Value

Server/smart host

Your MX endpoint, e.g. yourdomain-com.mail.protection.outlook.com

Port

Port 25

TLS/StartTLS

Enabled

Email address

Any email address in one of your Office 365 verified domains. This email address does not need a mailbox.


If you already have a connector that's configured to deliver messages from your on-premises organization to Office 365 (for example, a hybrid environment), you probably don't need to create a dedicated connector for Office 365 SMTP relay. If you need to create a connector, use the following settings to support this scenario:


TABLE 5

Connector setting

Value

From

Your organization's email server

To

Office 365

Domain restrictions: IP address/range

Your on-premises IP address or address range that the device or application will use to connect to Office 365


We recommend adding an SPF record to avoid having messages flagged as spam. If you are sending from a static IP address, add it to your SPF record in your domain registrar's DNS settings as follows:


TABLE 6

DNS entry

Value

SPF

v=spf1 ip4:<Static IP Address> include:spf.protection.outlook.com ~all


Step-by-step configuration instructions for SMTP relay

  1. Obtain the public (static) IP address that the device or application with send from. A dynamic IP address isn't supported or allowed. You can share your static IP address with other devices and users, but don't share the IP address with anyone outside of your company. Make a note of this IP address for later.

  2. Sign in to Office 365.

  3. Select Domains. Make sure your domain, such as contoso.com, is selected. Click Manage DNS and find the MX record. The MX record will have a POINTS TO ADDRESS value that looks similar to cohowineinc-com.mail.protection.outlook.com as depicted in the following screenshot. Make a note of the MX record POINTS TO ADDRESS value. You'll need this later.



  4. Check that the domains that the application or device will send to have been verified. If the domain is not verified, emails could be lost, and you won't be able to track them with the Exchange Online message trace tool.

  5. In Office 365, click Admin, and then click Exchange to go to the Exchange admin center.

  6. In the Exchange admin center, go to Mail flow > Connectors.

  7. Check the list of connectors set up for your organization. If there is no connector listed from your organization's email server to Office 365, create one:

    1. To start the wizard, click the plus symbol +. On the first screen, choose the options that are depicted in the following screenshot:



    2. Click Next, and give the connector a name.

      On the next screen, choose the option by verifying that the IP address of the sending server matches one of these IP addresses that belong to your organization, and add the IP address from step 1.

    3. Leave all the other fields with their default values, and select Save.


  8. Now that you are done with configuring your Office 365 settings, go to your domain registrar's website to update your DNS records. Edit your SPF record. Include the IP address that you noted in step 1. The finished string should look similar to this v=spf1 ip4:10.5.3.2 include:spf.protection.outlook.com ~all, where 10.5.3.2 is your public IP address. Skipping this step can cause email to be sent to recipients' junk mail folders.

  9. Now, go back to the device, and in the settings, find the entry for Server or Smart Host, and enter the MX record POINTS TO ADDRESS value that you recorded in step 3.

  10. To test the configuration, send a test email from your device or application, and confirm that it was received by the recipient.

How Office 365 SMTP relay works

In the following diagram, the application or device in your organization's network uses a connector for SMTP relay to email recipients in your organization.



Requirements for Office 365 SMTP relay

  1. Static IP address or address range: Most devices or applications are unable to use a certificate for authentication. To authenticate your device or application, use one or more static IP addresses that are not shared with another organization.

  2. Connector: You must set up a connector in Exchange Online for email sent from your device or application.

  3. Port: Port 25 is required and must not be blocked on your network or by your ISP.

  4. Licensing: SMTP relay doesn't use a specific Office 365 mailbox to send email. This is why it's important that only licensed users send email from devices or applications configured for SMTP relay. If you have senders using devices or LOB applications who don't have an Office 365 mailbox license, obtain and assign an Exchange Online Protection license to each unlicensed sender. This is the least expensive license that allows you to send email via Office 365.


    • Related Articles

    • How to configure the mail server in HRplus (new)

      Step 1 Navigation >>  System Configurations >> Company Parameters >> System Constants >> Mail server  Please contact your system administrator who will have to complete these fields   Mail Server IP address: Mail has to be sent your company’s mail ...
    • System Configurations

      System Configurations Overview System Configurations>>System Configurations The options under the System Configurations menu are items that need to be set up/ defined prior to using certain modules or features of HRplus. System Configurations Menu ...
    • System Configurations (‌Company Parameters)

      ‌Company Parameters  Navigation: System Configurations>>Company Parameters ‌What are company parameters? The options under Company Parameters refer to the main company in the database. ‌Company Parameters  Navigation: 1. System Configurations >> ...
    • Server and Client Specifications

      This is the latest revision to the HRplus Requirements for both Server and Client machines. Server 1 (Web Application Server) 16 GB RAM (Min)................( Note:For clients with larger databases, minimum requirements may be 32GB RAM) 250 GB HDD ...
    • System Configurations (Workflow)

      ‌Workflow  System Configurations>>System Configurations>>Workflow For more details on how to setup the leave workflow, click on the link below: Leave Workflow ‌How do I use the Leave Workflow? The Leave Workflow allows you to set up a user-defined ...