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

Argomenti vari di carattere sistemistico
Post Reply
daniele
Posts: 327
Joined: 04 Mar 2009, 13:59

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

Post 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>
Post Reply