Onsite SMTP Relay to Office 365 – 535 5.7.3 Authentication unsuccessful

·

This is due to SMTP client Auth flag not allowing this type of connection.

$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell-liveid?DelegatedOrg=<[email protected]> -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking

Set-TransportConfig -SmtpClientAuthenticationDisabled $false

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© Sorean's Virtual Home 2026. Theme: Architrave

Leave a comment
Expand sidebar⌘BCollapse sidebar⌘B
Focus modeExit focus mode