cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
436
Views
1
Helpful
1
Replies

How to quarantine (To, Cc) by quantity

Giorgi007
Level 1
Level 1

Hello,

I need to write a message filter which will count the recipient count including (To, Cc) in total and as an action quarantine that email.

For example if email's To header contains 1 recipient and Cc header contains 5 recipients I want to quarantine this email:

count-message-rule: 
if (addr-count("To", "Cc") > 5) 
{
 quarantine("Policy");
}
.

Will this message filter rule be applicable for this purpose? Are there any other options?

Any help is appreciated. Thanks in advance.

1 Reply 1

Yes, that's what that will do.

rcpt-count works similarly, but operates on the envelope recipient count...

You should try each one and see which one covers your uses cases.