Quantcast
Channel: Exchange Server 2013 - Mail Flow and Secure Messaging forum
Viewing all articles
Browse latest Browse all 3660

Need to set up a transport rule on Office 365 to block outgoing email to both of two domains

$
0
0

I want to set up a rule that will block outgoing email when it includes domainsperson@a.com and person@b.com as recipients. However, I want email that goes to just person@a.com to be allowed as well as well as a separate email to person@b.com

This needs to work regardless of other email addresses included on the email (e.g. allowperson@a.com , test@test.com),  (blockperson@a.com, person@b.com , test@test.com).

It also needs to work regardless of if they are on the to line or cc line, but ignore instances of the emails in the body of the message.

Finally, I'd like this to work for subdomains as well without needing to specify them (e.g. person2@test.a.com is blocked)

Just for clarity, it shouldn't block (email to person@a.com,person2@a.com, person3@test.a.com) but (block person@a.com,person2@a.com, person2@b.com)

I can't quite make it work in 2013 - it feels like I need to use a predicate I'd rather not, as the same one isn't allowed twice. I tried the recipients address contains anded with the recipient domain is but it didn't seem to work.

Any thoughts?


Viewing all articles
Browse latest Browse all 3660

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>