SMTP Server send only within my domain

I'd like to take my existing SMTP server that is within my network, and limit where it can send emails. I only want emails to go out to addresses that are within my domain.

Currently, anyone with access to the server can send to any email in the world. Moving forward I only want emails to go to user@mydomain.com. All other emails should be ignored.

I'm currently using Windows server 2012 with Microsoft's SMTP module.

Is there a way to set this up with my current solution or is there another product that will cover this?

All help is appreciated.

Thank you,

John Caspary
JohnMan777Asked:
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.

Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
This is due to the fact that you have allowed the IP ranges to relay.  If you remove the IP addresses from the relay list, it will only relay to local domain only.
0
JohnMan777Author Commented:
Unfortunately, I don't have my own exchange server, but instead use Office365.  Because of this, I must allow the traffic to leave the company intranet.

Is there another way to make this work?
0
JohnMan777Author Commented:
I figured out a solution. Microsoft helped me set up a rule in Office365 to restrict to internal use only. This was done based on the senders email address.
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
JohnMan777Author Commented:
Microsoft helped me out.
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
Windows Server 2008

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.