Need to reverse an Exchange Shell Command!

I have a client with SBS 2011, using Exchange, no POP mailbox downloading.  One person in the organization received an email that looked like it was a spoofed address that was sent from outside the network and routed through the exchange server to the person in the organization.  After a short amount of research I discovered this command:

Get-ReceiveConnector “My Internet ReceiveConnector” | Get-ADPermission -user “NT AUTHORITY\Anonymous Logon” | where {$_.ExtendedRights -like “ms-exch-smtp-accept-authoritative-domain-sender”} | Remove-ADPermission

This evidently close the loophole, but caused another problem unexpectedly.  I need to reverse this command, but not sure how to.  I tried replacing "Remove-ADPermission" with "Add-ADPermission", but it didn't seem to do anything.  Any ideas?
CRush1682Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LesterClaytonCommented:
You want:

Get-ReceiveConnector "My Internet ReceiveConnector" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient"

Open in new window


The thing is, this will open up your Exchange server to be an open relay for anybody on the Internet.

What you really should have done was create another Receive connector, assigned it the Anonymous right.  Good instructions on how to do this is here: http://www.msexchange.org/kbase/ExchangeServerTips/ExchangeServer2010/SetupDeployment/AnonymousRelayReceiveConnector.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CRush1682Author Commented:
Thanks, I'll look into that asap.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.