SMTP Server Setup on Windows 2019
Install SMTP Server on Windows Server 2019
Instructional only.
Telnet to your SMTP Server
Telnet 127.0.0.1 587
mail from:xxx@yy.com
rcpt to:ggg@gmail.com
data
this is the subject
this is the body
.
Starting on November 15, 2017, outbound email messages that are sent directly to external domains (like outlook.com and gmail.com) from a virtual machine (VM) are made available only to certain subscription types in Azure. Outbound SMTP connections that use TCP port 25 were blocked. (Port 25 is used mainly for unauthenticated email delivery.)
This change in behavior applies only to subscriptions and deployments that were created after November 15, 2017.
https://docs.microsoft.com/en-us/azure/virtual-network/troubleshoot-outbound-smtp-connectivity
windows server