I want to create a compliance policy to allow a specific user to send mails to a specific domain only i.e. abc.com and any other domain should be get rejected. I have created a dictionary for Allowed Domain List in which I have defined abc.com After that I have created compliance policy with following condition :
If text in Envelope recepient part of the message header does not contain domain name from dictionary "Allowed Domain List"
Action :
Delete message & Send notification "Emain policy voilation"
Now problem is that when user add any other domain in to, cc or bcc field along with domain name from dictionary "Allowed Domain List"
the message got delivered.
So I have created new dictionary for Restrcited Domain List. In this list I have defined some domains for testing e.g. hotmail.com, yahoo.com and added one more condition in above complaince policy as following :-
If text in Envelope recepient part of the message header contains Domain name from the dictionary "Restricted Domain List"
Action :
Delete message & Send notification "Emain policy voilation"
Now I am close to my requirement it is rejecting mails if user add any domain from restricted domain list in to, cc or bcc field along with domain name from dictionary "Allowed Domain List"
But issue is that there are hunderds/thousands of email domain are avaialble on internet and I can not add all of them in "Restricted Domain List".
Is there is any method to use wildcard in "Restricted Domain List" or rejected/drop mails if user add any unknown domain in to, cc or bcc field with domain name from dictionary "Allowed Domain List" ?