SOLVED

reject emails to 2 recipients

Copper Contributor

Hi,

 

I want to set a Exchange server rule so that anyone that sends and email to address1 AND address2 in the To: field can be rejected. They should be able to send individually to address1 OR address2 but not in the same email.

 

Seems to only have the option to block multiple recipients using OR

 

Is there any way to do this?  I have done a rule that they can't address address1 or address2 in the CC box which is fine, but they bypass that by just using the To field to those addresses.  It created issues with our auto-ticketing systems so needs stopping somehow and asking politely doesn't work

 

Any help appreciated

4 Replies
Hi Graeme,

I would create a security group hidden from GAL and add one of the addresses you want to block. Then create a transport rule:

Apply this rule if...
1) the message >to box contains this person
2) the message >to box contains a member of this group

Do the following...
Reject the message with an explanation

Hope this helps!

Hi Ricardo,

 

Many thanks for this.  Good thinking!

 

There is actually 3 addresses I need to incorporate, so I have made 6 rules as it's unlikely they will send to all 3 helpdesk addresses at once, two addresses happens!

I will let it all replicate and feedback tomorrow.

 

Many thanks for the help

Regards

best response confirmed by Graeme Lee (Copper Contributor)
Solution
I'm not sure why you have created 6 rules.

Just to be clear about my idea I will attach a screenshot.

So, for example:
A@contoso.com
B@contoso.com
C@contoso.com

Security groups:
Sec1@contoso.com = a+b
Sec2@contoso.com = a+c
Sec3@contoso.com = b+c

Rules:
1) to: c + any member of sec1
2) to: b + any member of sec2
3) to: a + any member of sec3

I look forward to hearing from you.

Yes thanks Ricardo.  I didn't think to add both other addresses to the group and have done them individually to avoid any AND or OR issues, therefore the 6 rules.  But I have now created them as per your last post and it works perfectly.

 

Just what I required. Many thanks for the help and taking the time to make easily understandable. Very much appreciated

 

1 best response

Accepted Solutions
best response confirmed by Graeme Lee (Copper Contributor)
Solution
I'm not sure why you have created 6 rules.

Just to be clear about my idea I will attach a screenshot.

So, for example:
A@contoso.com
B@contoso.com
C@contoso.com

Security groups:
Sec1@contoso.com = a+b
Sec2@contoso.com = a+c
Sec3@contoso.com = b+c

Rules:
1) to: c + any member of sec1
2) to: b + any member of sec2
3) to: a + any member of sec3

I look forward to hearing from you.

View solution in original post