How Can I Restrict Outbound Email to Just One Domain?

0
0
Asked By Techie12345 On

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

Answered By SmtpSleuth On

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.

Answered By EmailWhisperer On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.