Sending mail is a task imperative for every business. However, the process of configuring outbound mail via Office 365 can be tedious and time-consuming. This article provides step-by-step instructions on how to configure outgoing email through System Manager in Office 365.

The “configure a connector to send mail using microsoft 365 or office 365 smtp relay” is a solution that allows users to configure outbound mail via Office 365. The process of configuring the connectors can be done through PowerShell.

We updated MX records to Office 365 in the previous post. This time, we’ll create outbound mail flow for Exchange Hybrid settings using Office 365. As a result, any emails sent from Exchange on-premises will be protected by Exchange Online Protection (EOP).

Introduction

For outgoing mail to the internet, the on-premises Exchange organization currently includes a send connector. When an on-premises mailbox user sends an email, the quickest path to the internet is via that connection.

We can observe that the path from the on-premises server straight to Google servers by inspecting the headers from an on-premises mailbox user to a Gmail address in Message Header Analyzer. Exchange Online is not used to send the message.

picture will be released shortly

Because of Exchange Online Protection, many organizations choose to utilize Exchange Online for outgoing mail (message hygiene). It’s already included in the Exchange Online subscription license, so you won’t have to pay extra for a third-party spam filter.

Exchange Online allows you to make changes to your outgoing mail:

  • Before you begin the move, make sure you have everything you need.
  • The migration has reached its half-way mark.
  • The move is now complete.

Before migrating mailboxes to Office 365, we’ll setup outgoing mail using Exchange Online.

Important: We suggest making the changes below outside of business hours in production settings in case they have an effect on your typical mail flow.

Get send connectors for Exchange on-premises.

Let’s get the organization’s outbound send connections up and running. Run the Get-SendConnector cmdlet in Exchange Management Shell as an administrator.

C:>Get-SendConnector | ft Name,AddressSpacesName AddressSpacesName AddressSpacesName AddressSpacesName AddressSpacesName AddressSpacesName AddressSpacesName AddressSpacesName AddressSpacesName AddressSpacesName AddressSpaces ———————————————————————————————————— SMTP:*;1;1;1;1;1;1;1;1;1;1;1;1 smtp:M365x877334.mail.onmicrosoft.com;1 d1c9beac-0655-48e7-9949-5e497af1d38d outbound to Office 365 – d1c9beac-0655-48e7-9949-5e497af1d38d

Do you wish to look at the Exchange admin center’s outbound send connectors? Log in to the Exchange admin center on-premises. Select Mail Flow > Send Connectors from the drop-down menu.

Configure-outbound-mail-via-Office-365

Within the organization, we have two send connectors:

  • Internet email is used to send emails via the internet.
  • For a hybrid mail flow, send outbound to Office 365.

When you perform the Hybrid Configuration Wizard, the Outbound to Office 365 send connection is already configured.

Connectors for Office 365 are available.

The Hybrid Configuration Wizard creates two connections (inbound and outbound) in Office 365 and one send connector on your on-premises Exchange Server.

Verify the connections by logging into the Microsoft 365 Exchange admin center.

1635417405_853_Configure-outbound-mail-via-Office-365

We can go on to the next stage now that we know we have a send connectivity to the internet and the connectors that the Hybrid Configuration Wizard installs are in place.

Add an outgoing mail send connector for Office 365.

A send connection that sends outgoing mail through Office 365 is required. First, we’ll need to locate the Office 365 MX record.

Obtain the MX record for Office 365.

Navigate to Settings > Domain in the Microsoft 365 admin portal after logging in. Go to the DNS records page after selecting the domain. You’ll need the MX record value in the following step, so copy it now.

1635417408_81_Configure-outbound-mail-via-Office-365

Set up a new send connection.

As an administrator, run Exchange Management Shell. Fill in the following information using the New-SendConnector cmdlet:

  • Outbound to the Internet using Office 365 is the name of the feature.
  • Use the asterisk for address spaces (wildcard). This will locate all domains with no more special routes to find, such as the hybrid namespace, which has its own connector.
  • Set the value of CloudServicesMailEnabled to true.
  • Fqdn: The Fully Qualified Domain Name is what the server will use to advertise itself during an SMTP connection when it sends the HELO command.
  • Set the value of requireTLS to true.
  • Set DNSRoutingEnabled to false to prevent this connection from relying on MX records in DNS to identify where to deliver messages.
  • The Exchange Online Protection (EOP) endpoint is SmartHosts. So, regardless of where it ends up on the internet, all mail flows via Exchange Online first. Instead of permitting MX records routing, we specify that as a smart host.
  • TLSAuthLevel: TLS encryption is ensured by certificate validation, and certificates must also pass validation tests. A self-signed certificate or any other invalid certificate will be rejected by the server.
[PS] C:>New-SendConnector -Name “Outbound to Internet through Office 365” -AddressSpaces * -CloudServicesMailEnabled -AddressSpaces * -AddressSpaces * -AddressSpaces * -AddressSpaces * -AddressSpaces * -AddressSpaces * -AddressSpaces -Fqdn mail.exoip.com $true -DNSRoutingEnabled $false -RequireTLS $true exoip-com.mail.protection.outlook.com -SmartHosts -TLSAuthLevel Identity CertificateValidation Enable AddressSpaces ————————————————————————————————————————————————— Office 365 provides outbound access to the Internet. True smtp:*;1

In the on-premises Exchange admin center, the new send connector will appear as follows.

Soon, an image will be available.

Disable the internet transmit connection that was previously installed.

After that, the other send connector for outgoing mail to the internet may be disabled. We may delete the send connection once we’ve tested the mail flow.

C:>Set-SendConnector -Identity “Outbound to Internet” -Enabled [PS] C:>Set-SendConnector -Identity “Outbound to Internet” -Enabled $false

Service Microsoft Exchange Transport should be restarted.

Changes to the transport configuration in Exchange take a while to take effect since the server loads the configuration from Active Directory and caches it for a while. It takes roughly 15 minutes on average.

If you wish to speed up your testing, you may force the Microsoft Exchange Transport Service on the server to reload the settings by restarting it.

C:>Restart-Service (PS) MSExchangeTransport

Using Office 365, test outgoing mail flow.

Send a test email to a Gmail account from an Exchange on-premises mailbox. Copy the headers from the message and paste them into the Message Header Analyzer once it arrives.

picture will be released shortly

The mail was transferred from Exchange Server on-premises to Exchange Online. It made a couple stops through Exchange Online before making its way to Google’s mail servers.

You can observe the change in email routing when compared to the first test email.

Disconnect the old outbound send connection.

You may either delete the old outbound send connector immediately or wait a few days before doing so.

C:>Remove-SendConnector “Outbound to Internet” [PS] C:>Remove-SendConnector “Inbound to Internet”

We’ll transfer mailboxes to Office 365 in the future post.

Conclusion

We demonstrated how to set up outgoing mail in Office 365. Change the outgoing mail flow in Exchange on-premises before, during, or after migration. The outgoing mail flow will then pass via Exchange Online Protection and into the recipients’ mailboxes.

Did you find this article to be interesting? You may also be interested in Exchange hybrid certificate renewal. Don’t forget to subscribe to our newsletter and share this content.

The “office 365 smtp port” is a configuration option for outbound mail. It’s important to know the settings of your email service because it will affect how you send and receive emails.

Frequently Asked Questions

How do I enable an outbound email in Office 365?

A: To enable an outbound email in Office 365, please go to mail.office365.com and then click on the settings icon at the top right corner of your screen (see attached image for reference).

How do I integrate email with Office 365?

A: To add an email address in Outlook, youll need to go into the settings and then select Add a contact under Other People. Enter your name and email address so that we can send you notifications about new posts. Fill out any other information if applicable such as phone number or company.

How do I use Office 365 as SMTP?

A: For the purposes of email, a SMTP server is an Internet service that sends and receives messages from general email users. In order to use Office 365 as your SMTP server, you will need to sign up for an O365 account with an outlook.com address (e.g., [email protected]).

  • office 365 smtp settings
  • office 365 smtp authentication
  • office 365 smtp server
  • office 365 smtp settings for scanner
  • mail flow in office 365
You May Also Like

What is a Security Key for Wifi?

A security key is a form of two-factor authentication that uses public…

Download Ignitis savitarna for PC Windows 10,8,7

Ignitis savitarna is an app that allows you to download all kinds…

Download Leave Me Alone. Wallpaper for PC Windows 10,8,7

Download Leave Me Alone. Wallpaper for PC Windows 10,8,7 wallpaper is a…

Best Windows 11 Themes to Get Right Now (2022)

Windows 11 is only a few short months away. With it, Microsoft…