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?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

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:

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.
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

From novice to tech pro — start learning today.