What is the order of operations with email filtering, also, .zip files


InMotionFans
n/a Points
Asked:
2014-07-02 2:19 pm EST

Hits: 11
What is the order of operations with email filtering. I see that there is a selector for 'or' or 'and' for logic, but would like to know if 'and' operations are prioritized and execute first. Also, I have a filter set for .zip files to be filtered, but it is not working reliably, how can I get it to work reliably? Here is the .zip filter logic: It is called executable files and only works some of the time

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

JacobIMH
Staff
9,968 Points
2014-07-02 3:34 pm EST
Hello, and thanks for your question.

When dealing with the logic for OR or AND in your cPanel email filters they are processed from top to bottom and work like this:

OR This condition or the next condition can be met

AND This condition and the next condition must be met

So if you had these conditions setup:

Body contains .zip OR
Body contains .exe OR
Body contains .bat OR
From contains example.com AND
Body contains attached file

Messages from example.com will filter if the body contains attached file.

Messages from example.net will NOT filter if the body contains attached file. Only if the body contains .zip OR .exe OR .bat.

Messages just on the condition they are from example.com will not be filtered, unless the body contains attached file. The AND condition sets these up as pairs to be matched.

However if a message was from example.com and contained .zip in the body it would still be filtered because of the first rule.

If your filter only works some of the times, possibly you're expecting a message that just contains attached file in the body to be filtered. But with the way it's currently setup, that will only work if the email also comes from example.com.

Hope that helps, and if you're still having issues please give us a specific example of a message making it pass your filter. The subject and date and email account should suffice, and be sure to leave the message on the server so we can look at it to see why it might have skipped your mail filter.

- Jacob

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!