How Can I Restrict Outbound Email to Just One Domain?
Asked by
Techie12345
I'm working in a non-production environment in a colocation setup for internal development and testing. Unfortunately, our devs and support staff have sent out a few email blasts to customer domains without checking first. I need to ensure that emails from this environment can only go to our company domain. Currently, we're using an old IIS6 SMTP relay that connects to a simple SMTP serviceโnot SendGrid. There's no additional service in front of it like Mimecast, and I'm not looking to adjust any settings in 365. The emails are being sent from a .NET application. I'm considering setting up a Postfix server to handle this restriction. Any suggestions?
Answers
It sounds like you could try adding a hosts file entry to route any traffic destined for external domains to a local sandbox instead. However, since you're using IIS6 for SMTP, it might be a bit tricky. Setting up a Postfix server could be simpler for handling this in the long run and will give you more direct control over outbound messages.
Reply to this answer
You could also configure your setup to drop any emails that aren't directed to your company domain by sending them to /dev/null or discarding them outright. This would be a straightforward way to prevent accidental emails from going out.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions