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?
2 Answers
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.
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.
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures