Kernel Data Recovery Blog

Setup a Microsoft 365 SMTP Relay with TLS Connectors

Read time: 5 minutes

While sending emails from one client to another, have you ever thought about how it really happens? What mechanism establishes a connection between two mail clients? Actually, it is all made possible through a protocol named SMTP (Simple Mail Transfer Protocol), which is mainly responsible for transferring mail from one host to another. It includes three major phases, i.e., connection establishment, mail transfer, and connection termination. But sometimes, you might need a higher level of anti-spam and anti-virus protection to receive mail from any client, which can’t be achieved from a single SMTP. Hence, it is recommended to configure your SMTP settings with relays to improve efficiency.

SMTP relay is a managed service that enables users to send their outgoing mail via Simple Mail Transfer Protocol (SMTP). Nowadays, almost all email services send emails through SMTP relay service. To avoid confusion between SMTP and SMTP relay, you can think of SMTP as a delivery protocol for outgoing email and SMTP relay as the email transmission process. SMTP relays are also the best option when sending bulk emails or marketing messages.

Prerequisites for Setting Up SMTP relay

Before moving to set up the SMTP relay, you must have the following requirements:

Microsoft 365 Connectors

Microsoft 365 Connectors provide a route to emails from Microsoft 365 servers to your server. It provides seamless communication between them.
For SMTP relay, you must configure Microsoft 365 connectors from your mail server to Office 365 by following the below steps:

Now, let’s take a closer look at configuring Microsoft 365 SMTP relay with a connector from the mail flow between Microsoft 365 and your mail server:

Using PowerShell

If configuring an SMTP relay with connectors using the Exchange admin center doesn’t work, you can use an alternative method, i.e., PowerShell. Before proceeding further, ensure that you are connected to Exchange Online PowerShell. To set the SMTP relay with connectors, you need to run the below commands:

$ABC = @{
Name = ‘SMTP Relay’ ## Define name of connector.
ConnectorType = ‘OnPremises’ ## Define type of connector to create.
SenderDomains = ‘*’ ## The set of sender domains allowed to relay.
RequireTLS = $true ## Require TLS
TlsSenderCertificateName = ‘*.YourDomain.com’ ## Subject/Name of the SSL certificate
}
New-InboundConnector @ABC

Require TLS: It specifies that all messages received by the specific connector require TLS transmission.

TlsSenderCertificateName: It is a certificate name given by the sender.

Conclusion

As the SMTP relay service supports bulk emailing and offers high-level security, it’s quite important for your organization to set up an SMTP relay. It offers quick email delivery and a tracking emails option which makes it stand apart from other services. If you use this service, you need not worry about the security of Microsoft 365 mailboxes. Here, we have listed all the possible methods to set up an SMTP relay with TLS connectors. But before attempting these methods, it is recommended to keep a backup of your data stored in Microsoft 365. One such innovative tool, Kernel Office 365 Backup & Restore, can backup your private mailboxes, shared mailboxes, archive mailboxes, public folders, and Office 365 groups. It also offers automated backup using inbuilt CSV files. You can save your backup data in multiple output formats such as PST, DOC, DOCX, EML, PDF, etc. Furthermore, it offers smart filters to choose only the required data.