How to disable SMTP Client Authentication in Powershell Exchange Online. This resolves the issues after enabling MFA with scan to mail.
- Open Windows PowerShell and run the following command
- Set-ExecutionPolicy RemoteSigned
- $UserCredential = Get-Credential
- Without MFA: Connect-ExchangeOnline -Credential $UserCredential -ShowProgress $true
With MFA: Connect-ExchangeOnline -UserPrincipalName <UPN> -ShowProgress $true
- Connect-ExchangeOnline -UserPrincipalName <UPN> -ShowProgress $true
- Set-casmailbox [email protected] -SmtpClientAuthenticationDisabled $false
- Check status with: Get-casmailbox [email protected] | fl SmtpClientAuthenticationDisabled