Page 1 of 1

Enable or disable authenticated client SMTP submission (SMTP AUTH) in Exchange Online

Posted: 03 Nov 2022, 10:29
by daniele
1) Connect to Exchange online via Powershell
(Instructions for Windows - check on Internet for updated and complete instructions)

INSTALL Exchange online management tools

Code: Select all

Install-Module -Name ExchangeOnlineManagement
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

Code: Select all

Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled
3) Enable (or disable) SMTP AUTH for the whole tenant

Code: Select all

Set-TransportConfig -SmtpClientAuthenticationDisabled $true
(or $false)

3) Enable (or disable) SMTP AUTH for a specific mailbox

Code: Select all

Set-CASMailbox -Identity <MailboxIdentity> -SmtpClientAuthenticationDisabled <$true | $false | $null>