SMTP for Microsoft Office365

Modified on Fri, 5 Jul at 5:07 PM

  1. Go to admin.microsoft.com and login with your global administrator account
  2. Go portal.azure.com
  3. From the left panel choose “Properties”
  4. Click “Manage Security Details” at the bottom of your screen
  5. From the panel that opens change the dropdown to “Disabled (not recommended)”

POWERSHELL COMMANDS


Install-Module -Name ExchangeOnlineManagement
HTML

Reply: A (yes to all)


Import-Module ExchangeOnlineManagement
HTML
Connect-ExchangeOnline -Credential $UserCredential -ShowProgress $true
HTML
Set-CASMailbox -Identity EMAIL_ADDRESS_GOES_HERE -SmtpClientAuthenticationDisabled $false
HTML

DNS Records

  1. Add a TXT record to the DNS zone for your domain on the server. (see record configuration below)
_dmarc.yourdomain.com 3600 IN TXT v=DMARC1; p=quarantine
HTML

CONFIGURING SMTP

  1. Download WP Mail SMTP plugin (required)
  2. Use the following setting for configuration.

HOSTsmtp.office365.com
ENCRYPTIONTLS
AUTHENTICATIONON
SMTP USERNAMEyourname@yourdomain.com
PORT587
PASSWORD(Office365 password for this licensed user)

See documentation

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article