Skip to main content

Email filters - Knowledgebase / Software Servere / cPanel - Centrul Support

Email filters

Authors list

Email filters are used to sort the messages according to certain parameters set by you (sender, subject, keywords). These filters can be created for a cPanel account, for a domain, or for an individual email account.

In this article, we will explain to you what these parameters mean.

1. Condition

  • From: the email address from where the message is received;
  • Subject: the subject of the email becomes the filtering criteria;
  • To: the receiver becomes the filtering criteria;
  • Reply: usually, it is the same address, but it can be customized so that the "reply to" address does not match the sender address;
  • Body: makes the filtering based on the content of the message;
  • Any Header: allows searching depending on any header parameter;
  • Any Recipient: allows searching into the CC field;
  • Has Not Been Previously Delivered: filters the messages in the queue delivery, without them being delivered in Inbox;
  • Is an Error Message: it refers to the bounce or failed delivery messages;
  • List ID: you can search by the number of the sending list.

2. Operators

  • contains: the message contains certain words; if your filter is set on the subject and you receive an email having the subject "cheap holidays" and you also set "holidays" as a condition then the filter will be applied;
  • matches regex: allows using regular expressions to match certain expressions for partial matching with the filtering condition;
  • does not contain: it is the opposite of contains. The filtering is made as long as the search term does not match anything;
  • equals: exact matching with a string. For example, if the filtering is made by the subject of the email and the search term is "original sunglasses" and the subject of an email is "cheap sunglasses" the email will not be filtered;
  • begins with: allows searching using the first part of the condition. For example, if you have a message with the subject "Important: emergency meeting" if the search is made after the word "Important", the filter will be applied; if the word is located at the end of the subject the filter will not be applied;
  • ends with: it represents the opposite of begins with, allows searching at the end of the searching operator;
  • does not begin: is similar to does not;
  • does not end with: is similar with not contain for ends with;
  • does not match: is the opposite of equals.


3. Actions

  • Discard Message: this option deletes the message without saving it. The sender will not receive an error email;
  • Redirect to Email: redirects the message to another email address and the initial recipient will not receive the message;
  • Fail With Message: allows sending a custom failure notice to the sender. The email is not be sent to the initial recipient;
  • Stop Processing Rules: the system will not process the rules;
  • Deliver to Folder: this allows the delivery to a certain folder within the email account. It does not work for POP3, the message will be delivered to index;
  • Pipe to a Program: it can be used to send all the incoming messages to a program. Is usually used for ticketing systems.

These filters can be set depending on your preferences and needs.

If you experience any issues or for any additional questions you can always contact us at

Helpful Unhelpful

62 of 102 people found this page helpful