troubleshooting Question

Permission issues when sending SMTP mail

Avatar of mihaisz
mihaiszFlag for Afghanistan asked on
Exchange
4 Comments1 Solution6458 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
Ehab Salem
IT Manager

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros