Allow account to send mail over smtp.office365.com using basic authentication
This is a how to video on allowing a user account to send mail over smtp.office365.com using basic authentication. For more details on connecting to Exchange Online using PowerShell see my video 'How to connect to Exchange Online with PowerShell'. Commands used #Next we checked for an existing Authentication Policy allowing basic auth through smtp Get-AuthenticationPolicy | Select-Object -Property Name, AllowBasicAuth* #Next we will create the policy to auth basic authentication over smtp New-AuthenticationPolicy -Name "Allow basic auth" -AllowBasicAuthSmtp:$True #Then check if it was created Get-AuthenticationPolicy -Name "Allow basic auth" | Select-Object -Property Name, AllowBasicAuth* #Then assign it to the user Set-User "USER@"DOMAIN.COM" -AuthenticationPolicy "Allow basic auth" #Verif that it was assigned to the user Get-User "USER@"DOMAIN.COM" | Select-Object -Property AuthenticationPolicy #At the end test if the account can send over smtp using basic auth Send-MailMessage –From "USER@"DOMAIN.COM" -To "USER1@"DOMAIN.COM" -Subject "Email over SMTP.office365.com" -Body "This is a test email using basic auth smtp" -SmtpServer smtp.office365.com -Credential (Get-Credential) -UseSsl –Port 587
Download
0 formatsNo download links available.