Forum Discussion
Malik_Thien
Mar 16, 2022Copper Contributor
Send-Mailmessage vs Telnet and Non-Accepted Domains
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 an...
Malik_Thien
Mar 28, 2022Copper Contributor
I think i found the answer.
If someone is curious; the powershell is running withing the user context hence using the cerberos token. You can see the sessionauthentication via these commands
$token = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$token
My test-mail was received on the exchange "client proxy"-Receive Connector. In the Security context of that connector Windows Authentication is active so that makes sense i guess.
If someone is curious; the powershell is running withing the user context hence using the cerberos token. You can see the sessionauthentication via these commands
$token = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$token
My test-mail was received on the exchange "client proxy"-Receive Connector. In the Security context of that connector Windows Authentication is active so that makes sense i guess.