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

Help! Content filter with Dictionary checking

Kit1
Level 1
Level 1

By default, my company will block all mail from gmail.com, yahoo.com & hotmail.com.

I have created 2 dictionaries for this issue: 1) Exceptional email address list which allowed to send mail to us. 2) VIP list who can receive email from these 3 domains.

 

I would like to use content filter to check if addresses are NOT found in either dictionaries, it will be quarantined.

 

But I don't know how to do it. Any suggestion?

 

Thanks

Kit

1 Accepted Solution

Accepted Solutions

Libin Varghese
Cisco Employee
Cisco Employee

Hi Kit,

 

I do not think a single content filter would do it since content filters do not currently support NOT for dictionaries.

 

You would first need to create an incoming mail policy for all emails from sender domain gmail, hotmail, yahoo. Its best to keep these separate if these are going to be treated differently to other emails.

 

So Mail Policies -> Incoming Mail Policies -> Add Policy -> Add User -> Following senders (gmail.com, hotmail.com, yahoo.com) -> Any recipient

 

Note: Should be placed higher in order in order to avoid matching other mail policies.

 

Then create two incoming content filters for this incoming mail policy.

 

Content filter 1:
Condition 1: Envelope sender dictionary match
OR/AND depending on your requirement (OR if your points are 1 OR 2, AND if your points are 1 AND 2).
Condition 2: Envelope recipient dictionary match

 

Action 1: Add log entry: Skipping filter for exceptions
Action 2: Skip remaining content filters

 

Content filter 2:
No conditions

 

Action 1: Add log entry: Quarantine untrusted sender.
Action 2: Quarantine (Policy or another system quarantine)


Enable the two content filters for the newly created incoming mail policy.

 

Use System Administration -> Trace functionality to test the policy and filters, trace should work without committing changes so you can try all possible combinations before you save changes.

 

If you have a lab device, it would be recommended you add the filter and test it in the lab environment before adding it in production.


Regards,
Libin Varghese

View solution in original post

1 Reply 1

Libin Varghese
Cisco Employee
Cisco Employee

Hi Kit,

 

I do not think a single content filter would do it since content filters do not currently support NOT for dictionaries.

 

You would first need to create an incoming mail policy for all emails from sender domain gmail, hotmail, yahoo. Its best to keep these separate if these are going to be treated differently to other emails.

 

So Mail Policies -> Incoming Mail Policies -> Add Policy -> Add User -> Following senders (gmail.com, hotmail.com, yahoo.com) -> Any recipient

 

Note: Should be placed higher in order in order to avoid matching other mail policies.

 

Then create two incoming content filters for this incoming mail policy.

 

Content filter 1:
Condition 1: Envelope sender dictionary match
OR/AND depending on your requirement (OR if your points are 1 OR 2, AND if your points are 1 AND 2).
Condition 2: Envelope recipient dictionary match

 

Action 1: Add log entry: Skipping filter for exceptions
Action 2: Skip remaining content filters

 

Content filter 2:
No conditions

 

Action 1: Add log entry: Quarantine untrusted sender.
Action 2: Quarantine (Policy or another system quarantine)


Enable the two content filters for the newly created incoming mail policy.

 

Use System Administration -> Trace functionality to test the policy and filters, trace should work without committing changes so you can try all possible combinations before you save changes.

 

If you have a lab device, it would be recommended you add the filter and test it in the lab environment before adding it in production.


Regards,
Libin Varghese