I have installed a SMTP server on a Windows server 2016 hosted on amazon. When I tried testing the mail servicewith the powershell command:
Send-MailMessage -SMTPServer localhost -To (my mail) -From email@example.com -Subject "Test Mail" -Body "This is a test"
I followed lots of different configuration tutorial for the SMTP server, opened the firewall and all ports on the AWS security group but the result is always the same.
Here is the configuration of my server:
Hope you can help me resolve this issue, thanks for your help !