The Microsoft Office 365 organization uses a relay to send email messages. This article will show you how configure the SMTP server on your network so that it communicates with Exchange Online Protection (EOP) servers in order to provide spam protection, which is required by law for all organizations that use EOP.
The “office 365 smtp relay modern authentication” is a configuration setting for Office 365 that enables the use of modern authentication. Modern authentication refers to two-factor authentication, which requires users to provide an additional code sent via text message or phone call.
You get a free SMTP relay with Office 365, which is great for delivering emails to the outside world. You can set up SMTP relay with Office 365 if you have a cloud-based domain. This might be an Exchange Hybrid setup or a Microsoft 365/Office 365 cloud-only setup. We’ll look at How to configure Office 365’s SMTP relay in this post.
Introduction
Most IT setups contain some email-sending apps or devices, such as:
- Printers with several functions (scan to email)
- uninterruptible power supply
- Applications for data backup
- Applications for monitoring
- plus a whole lot more
Let’s look at how to set up a connection for STMP relay in Exchange Online for on-premises devices and applications.
SMTP relay settings in Office 365
You’ll need to do the following while setting up Office 365 SMTP relay:
- Find the public IP address from which the emails will be sent.
- MX record for the Office 365 domain
- On the organization’s firewall, open port 25.
- Add a public IP address to the SPF record for the domain.
Locate a public IP address
Visit www.whatsmyip.org or another website to find out your public IP address. You’ll need the Public IP address in the next step, so write it down.
Note: Obtain the public IP address of the organization from which you want to send email. This might be a range of IP addresses.
It’s the Public IP address 93.172.139.251 in our case.
Locate the Office 365 MX record
The MX record l is what you’ll put in the scanner or program that needs to use Office 365 to transmit STMP.
To Locate the Office 365 MX record, follow these steps:
- Access the Microsoft 365 interface by logging in.
- Select Domains from the drop-down menu under Settings.
- Select your domain.
- Navigate through the process to locate the MX record.
- To address or value a field, copy the Points.
It’s the MX record exoip-com.mail.protection.outlook.com in our case.
Firewall port 25 should be open.
You must open port 25 from the enterprise firewall to external to relay using Office 365 SMTP. The most secure method is to include just the Exchange Online IP addresses in the destination address, rather than ALL of them (everyone).
Add a public IP address to the SPF record for the domain.
Open the domain DNS settings by logging into the domain registrar. The domain exoip.com is used in this example.
The SPF TXT record value is as follows:
include:spf.protection.outlook.com v=spf1 mx include:spf.protection.outlook.com
Add the Public IP address to the current SPF record. As a result, the organization’s Public IP address servers will be authorized to send emails for the exoip.com domain name.
The new SPF TXT record value is as follows:
include:spf.protection.outlook.com ip4:93.172.139.251 -all v=spf1 mx include:spf.protection.outlook.com
Note that the modification may take up to 24 hours to take effect, although it usually does so within 5-15 minutes.
It’s time to establish Office 365 SMTP relay now that you’ve completed all of the stages.
How to configure Office 365’s SMTP relay
Follow these steps to set up SMTP relay for Office 365:
Choose the email server for your company. Next should be selected.
Fill in the SMTP relay connector’s name and turn it on. Next should be selected.
Select By ensuring that the transmitting server’s IP address matches one of the following IP addresses that are unique to your company.
Copy the public IP address from the previous step and paste it here. Next should be selected.
After you’ve reviewed the connection, click Create connector.
The SMTP relay connection was successfully built. After that, click Done.
The connection appears in the list of Connectors.
In Office 365, you’ve successfully installed an SMTP relay connection. As a consequence, the company is ready to use Office 365 to send emails.
Examine the SMTP relay in Office 365.
Test that everything is set up correctly and that email relays through Office 365 successfully. An excellent way to Examine the SMTP relay in Office 365. is with the Send-EmailOffice365.ps1 PowerShell script.
PowerShell should be run as an administrator. Download the Send-EmailOffice365.ps1 PowerShell or copy the script below. Run it after that.
Alter the fields as follows:
@ To = “[email protected]” $EmailMessage = @ “[email protected]” is the sender’s email address. “Test email” is the subject. SmtpServer = “exoip-com.mail.protection.outlook.com” Body = “Test email sent using Office 365 SMTP relay” @EmailMessage Send-MailMessage @EmailMessage
There should be no errors in the output, and the email should arrive in the mailbox you specified in the To field.
Conclusion
In Office 365, you learnt how to set up SMTP relay. Microsoft will provide you with a great way to relay email through Office 365’s Exchange Online, and you won’t have to pay anything extra. However, keep in mind that you must follow the steps in the correct order. Otherwise, the email will fail to send or may wind up in the recipient’s SPAM folder instead of their inbox.
Did you find this article to be interesting? Export Office 365 mailbox permissions to CSV is another option. Don’t forget to subscribe to our newsletter and share this content.
Watch This Video-
The “office 365 smtp relay not working” is an issue that many users have been experiencing. Microsoft has released a fix for this issue.
Frequently Asked Questions
How do I configure SMTP relay in Office 365?
A: To configure SMTP relay in Office 365, go to the Exchange Admin Center. Then navigate to Mail Flow > Transport Rules and click Add a new transport rule… button.
How do I find my SMTP relay in Office 365?
A: You can find your SMTP relay in Office 365 using the following steps.
How do I configure SMTP relay in Outlook?
A: The mail server you set up with your SMTP configuration must be an Exchange Server. In other words, if the mail server is not exchange, then it cannot receive or send email using Outlook.
Related Tags
- office 365 smtp settings for scanner
- office 365 whitelist ip for smtp relay
- office 365 smtp relay connector
- enable smtp authentication office 365
- on-premise smtp relay to office 365