Mar 16 2022 04:14 AM - edited Mar 16 2022 05:45 AM
Hello Community,
i noticed, that if i try to send an email via telnet to an external domain the session gives me the error "SMTP; Unable to relay recipient in non-accepted domain" - thats good and how you would expect it.
But if i do the same test now with the Powershellcommand Send-Mailmessage the mail is being send to the external recipient.
Can someone explain to my why that works? Where is the difference between the telnet sesssion and the powershell session?
[EDIT]
In Telnet i use the commands:
telnet exchange2016fqdn 25
ehlo
mail from:user@internaldomain
rcpt to:user@externaldomain
SMTP; Unable to relay recipient in non-accepted domain
The powershellcommand looks like this:
Send-MailMessage -to "user@externaldomain" -from "user@internaldomain" -Subject "Test" -body "Test Send-MailMessage" -smtpserver exchange2016fqdn
With kind regards
Malik Thien
Mar 28 2022 05:39 AM