This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.
Prerequisites:
- an Office 365 Subscription. If you do not have this yet, you can Sign up for an Office 365 E5 trial subscription.
- a Mailbox + Credentials
Setting Up the SMTP Relay
# Check if SMTP is installed before installing it.
$smtp = get-WindowsFeature "smtp-server"
if(!$smtp.Installed){
write-host "SMTP is not installed, installing it..." -ForegroundColor red
add-WindowsFeature $smtp
}
else{
write-host "SMTP is already installed!" -ForegroundColor Cyan
}
Sources:
https://it-infrastructure.solutions/docker-office-365-mail-relay/