
Microsoft released the new Version of SharePoint 2019 and within there are several new features like the SMTP Authentication. This feature now allows to connect to SMTP Servers directly from SharePoint. There is no need to use an SMTP relay just configure the Outgoing Mailsettings via Central Administration or Powershell.
Configuration via User Interface
Simple and easy. But before SharePoint needs an application credential key. Therefore we need a Powershell script:
$key = ConvertTo-SecureString -AsPlainText -Force “myapplicationcredentialkey”
Set-SPApplicationCredentialKey $key
This has to be done on each SharePoint Server in the farm.
Configuration via Powershell
Open the Powershell App and use this script:
$CentralAdmin = Get-SPWebApplication -IncludeCentralAdministration | ? { $_.IsAdministrationWebApplication -eq $true }
$SmtpServer = “smtp.Server.com”
$SmtpServerPort = 587
$FromAddress = “user@example.com”
$ReplyToAddress = “replyto@example.com”
$Credentials = Get-Credential
Set-SPWebApplication -Identity $CentralAdmin -SMTPServer $SmtpServer -SMTPServerPort $SmtpServerPort -OutgoingEmailAddress $FromAddress -ReplyToEmailAddress $ReplyToAddress -SMTPCredentials $Credentials
After that you can use the outgoing email function.
Resources
https://docs.microsoft.com/de-de/SharePoint/administration/outgoing-email-configuration
Leave a Reply
You must be logged in to post a comment.