Hallo Leute,
ich zeige euch heute wie ihr SMTP AUTH aktivieren könnt damit ihr per SMTP Mails versenden könnt (z.B. NAS, Firewall etc.)
Hier die Befehle:
- Set-ExecutionPolicy RemoteSigned
- $UserCredential = Get-Credential
- admin@domain.onmicrosoft.com
- $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
- Import-PSSession $Session –DisableNameChecking
- Get-TransportConfig | Format-List SmtpClientAuthenticationDisabled
- Set-TransportConfig -SmtpClientAuthenticationDisabled $true um SMTP dauerhaft zu sperren
- Set-TransportConfig -SmtpClientAuthenticationDisabled $false um SMTP dauerhaft zu erlauben
- Remove-PSSession $Session