Enable or disable authenticated client SMTP submission (SMTP AUTH) in Exchange Online
Posted: 03 Nov 2022, 10:29
1) Connect to Exchange online via Powershell
(Instructions for Windows - check on Internet for updated and complete instructions)
INSTALL Exchange online management tools
LOAD Exchange online management module
Import-Module ExchangeOnlineManagement
CONNECT AND AUTHENTICATE to Exchange online management module
Connect-ExchangeOnline -UserPrincipalName <UPN> [-UseRPSSession] [-ExchangeEnvironmentName <Value>] [-ShowBanner:$false] [-DelegatedOrganization <String>] [-PSSessionOption $ProxyOptions]
2) Check if SMTP AUTH is enabled for the whole tenant
3) Enable (or disable) SMTP AUTH for the whole tenant
(or $false)
3) Enable (or disable) SMTP AUTH for a specific mailbox
(Instructions for Windows - check on Internet for updated and complete instructions)
INSTALL Exchange online management tools
Code: Select all
Install-Module -Name ExchangeOnlineManagement
Import-Module ExchangeOnlineManagement
CONNECT AND AUTHENTICATE to Exchange online management module
Connect-ExchangeOnline -UserPrincipalName <UPN> [-UseRPSSession] [-ExchangeEnvironmentName <Value>] [-ShowBanner:$false] [-DelegatedOrganization <String>] [-PSSessionOption $ProxyOptions]
2) Check if SMTP AUTH is enabled for the whole tenant
Code: Select all
Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled
Code: Select all
Set-TransportConfig -SmtpClientAuthenticationDisabled $true
3) Enable (or disable) SMTP AUTH for a specific mailbox
Code: Select all
Set-CASMailbox -Identity <MailboxIdentity> -SmtpClientAuthenticationDisabled <$true | $false | $null>