Avatar of mihaisz
mihaisz
Flag for Afghanistan

asked on 

Permission issues when sending SMTP mail

We use email client code in one of our applications.
When I try to configure it to send email through an account called smtp_mail from Exchange 2007, the log file shows the following error:

Exception occured while trying to send the email with the subject MBS Selection
System.Net.Mail.SmtpException: Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender

Somebody suggested the following command:
get-receiveconnector "Client exch-mbs" | add-adpermission smtp_mail AU -extendedrights ms-Exch-SMTP-Accept-Authoritative-Domain-Sender

But when I launch it, it says:

Add-ADPermission : A parameter cannot be found that matches parameter name 'AU'.
At line:1 char:58
+ get-receiveconnector "Client exch-mbs" | add-adpermission  <<<< smtp_mail AU -extendedrights ms-Exch-SMTP-Accept-Authoritative-Domain-Sender
Exchange

Avatar of undefined
Last Comment
mihaisz

8/22/2022 - Mon