CentOS OpenVZ VPS servers, cPanel Hosting, Shared Hosting, Reseller Hosting, Dedicated Server, wordpress, Mysql, PHP 5.2
Comfort Host
Please Login or Register

Quick Navigation

Client Login

Email

Password

Remember Me

Search




































Knowledgebase

How to Block unwanted Emails?

You can block an email using spam filters. There are many definitions of spam, but one of the most useful ones is the following:

"Spam: unsolicited email, usually of a commercial nature."


To add a spam filter:

  1. Log into cpanel.
  2. Click on the "Block an E-mail" link in the Mail Menu area.
  3. Click on the [Add Filter] link.
  4. Click on the required header field in the first drop-down list. These are the various fields in any email message.
  5. Click on the required filter action in the second drop-down list. This action will act on the text entered in the third field.

    Equals - match the text exactly (whole words only). "Credit" will block "Credit".

    matches regex - matches the text based on regular expression (regex) rules. Regular expressions are a powerful but complex area. You do not need to use regular expression filters for most circumstances.

    contains - match the specified text in any circumstance. "porn" will block "porn" and "pornography".

    begins with - match the specified text when it is the beginning of a word. "porn" will block "porn" and "pornography" but not "teenporn".
  6. Enter the filter text in the third field. This text is case sensitive.
  7. Click on the [Activate] button.

    Example:

    To block all email from
    joe@lottery.com, enter: From, equals, joe@lottery.com

    To block all email from lottery.com, enter: From, contains, lottery.com

    To block all references to pornography, enter: Any Header, contains, porn

 



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article


Powered by WHMCompleteSolution

Language: