How to Set up the SMTP Server For Office 365

Set up secure and reliable email transmission

Reading time icon 6 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

A Simple Mail Transfer Protocol (SMTP) server for Office 365 is crucial for organizations that wish to secure their outgoing emails. Not only is it reliable but integrates with the Office suite apps making it a no-brainer to configure it.

How do I enable SMTP in Microsoft 365?

1. Set up a static IP address

  1. Hit the Windows key, type Control Panel in the search bar, and click Open.control panel windows open
  2. Navigate to Network & Internet. network internet windows
  3. Select Network and Sharing Center.windows network and sharing center
  4. On the left pane, select Change adapter settings.windows change adapter settings
  5. Right-click your network connection and click the Properties option.windows adapter properties
  6. Select the Internet Protocol Version 4 (TCP/IPv4) option and select Properties.windows properties ipv4
  7. Select Use the following IP address option, and under Use the following DNS server addresses set Preferred DNS server and press the OK button.windows use the following ip

Aside from providing a consistent address, using a static IP makes it easier to create firewall policies that enhance network security because you can now manage traffic from both sides.

2. Enable TLS 1.2

2.1 Check status

  1. Start by checking whether TLS has been enabled on your device. Hit Windows + R, type regedit, and navigate to the following location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client\Enabled
  2. The corresponding value should be 1, it has been enabled.

2.2 Check TLS version

  1. Next, verify the version to ensure it’s compatible with your device.
  2. Press Windows + X. and select Windows Powershell.
  3. Enter the following command: Get-TlsCipherSuite.
  4. Press Enter. Y

2.3 Enable TLS

  1. Click on Windows + R.
  2. Press Enter.
  3. In the Internet Properties window, click on the Advanced tab.
  4. Scroll down and check for the TSL protocol in use
  5. Select Apply.
  6. If you can’t find the option available, you’ll have to enable it from the Registry.

2.3.1 Enable TLS via the Registry

  1. Before you make any changes to the Registry Editor, we recommend that you backup your registry or create a restore point. This way, if anything goes wrong, you can undo the changes and avoid damage to your PC.
  2. Hit the Windows + R keys to open the Run command.
  3. Type regedit in the search box and hit Enter.
  4. Navigate to the following path: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols
  5. Right-click on an empty space in the right pane and select New>Key.
  6. Name the new key TLS 1.2 and click to expand it.
  7. Navigate to TLS 1.2, click on the empty space in the right pane, and add two new keys. Name the first one Client and the second one Server.
  8. Now, select the Client key, right-click in the right pane and select New, and then DWORD (32-bit) Value.
  9. Name the DWORD DisabledByDefault, and double-click it.
  10. Ensure that the Base is Hexadecimal, and the value is 0 (zero).
  11. Create a new DWORD and name it Enabled, and double-click it.
  12. Ensure that the Base is, again, Hexadecimal and the Value is set to 1.
  13. Close the Registry Editor and reboot your PC.

TLS 1.2 is the preferred security protocol for email servers because it is widely adopted by most email clients and has strong encryption properties compared to older versions.

3. Unblock port 587

  1. From theย Startย menu, searchย Control Panel, and press Enter.
  2. Then, click on Windows Defender Firewall.
  3. Select Advanced Settings.
  4. Then, choose Inbound Rules and click New Rule in the Actions window.
  5. Now, select Rule Type of Port and click Next.
  6. On theย Protocol and Portsย page clickย TCP. Selectย Specific Local Ports, type a value ofย 587 or 25, and clickย Next.
  7. On the Action page click Allow the connection and click Next.
  8. In the Profile page click the appropriate options for your environment and click Next.
  9. On theย Nameย page enter the name of SMTP (TCP on port 587) and clickย Finish.
  10. Restart the computer.

Port 587 or 25 is the default port for outgoing email traffic. Most ISPs block this port but if you enable TLS 1.2, you’ll require this port for email transmission to further enhance your security. It will also help avoid being blacklisted on email inboxes as spam since the port will now be free from restrictions.

4. Set up SMTP server

4.1 Set up via domain

  1. Navigate to your browser and sign into your Microsoft 365 admin center account.
  2. Go toย Settingsย >ย Domains and under your MX record, note down the Point to address value. It should be something like: contoso-com.mail.protection.outlook.com.
  3. Go back to the admin center and navigate to Mail flow > Connectors. If none is available for your organization, create one.
  4. Set your email flow scenario to Office 365.
  5. Hit Next, and give the connector a name and brief description.
  6. Next, check the By verifying that the IP address of the sending server matches one of these IP addresses that belong to your organization box and add the IP address from step 1.
  7. Hit Save and a summary will appear.
  8. You can send a test mail to confirm whether your emails are being received on the other end.

4.2 Set up for individual accounts

  1. Navigate to your browser and sign into your Microsoft 365 account or launch the Outlook mail app on your desktop.outlook view not showing email content
  2. Expand Account Settings and select Manage Profiles.
  3. Click on the Email Accounts button.
  4. Choose your email account from the list, click on it to select then hit Change.
  5. Click on More Settings.
  6. Navigate to the Outgoing server tab and check the My outgoing server (SMTP) requires authentication and Log on using boxes.
  7. Next, move to the Advanced tab and under the Use the following type of encrypted connection, select SSL/TLS from the drop-down menu then hit OK.

Potential issues and best practices for SMPT server for Office 365

Your TLS certificate may expire while you’ve enabled SMTP authentication. A quick update of your system should fix this since most are meant to be compatible with certain OS versions.

In case the emails end up in the spam folder, review your spam filtering settings or whitelist the specific sender/domain.

For best practices, SMTP port problems can occur at any time so check your firewall and network configurations frequently to ensure it is not blocking any connections and all necessary ports remain open.

That’s all we had for this article. If you’ve enabled an SMTP server on your Office 365, we’d like you to share your experience thus far. Drop us a comment down below.

More about the topics: Office 365