انتقل إلى المحتوى
+8801305768757

How to Create a Global Email Filter in cPanel to Fight Spam

Mail Filters & SPAMمدة القراءة: 2 دقيقة1370 مشاهدة
في هذه الصفحة
  1. Create the filter
  2. Useful rule ideas
  3. Check that it worked
  4. Common problems
  5. Related guides

To create a global email filter in cPanel, open Global Email Filters, click Create a New Filter, set a rule and an action, then click Create.

A global filter checks new mail for every email address in your cPanel account. Older cPanel versions called this tool Account Level Filtering. To filter one address only, use a user-level filter instead.

Create the filter

  1. Sign in to cPanel. Your sign-in details are in your welcome email or under Services in the ASRHost client area.
  2. Type Global Email Filters in the Search Tools box and open it.
  3. Click Create a New Filter.
  4. In Filter Name, type a name you will recognize, for example Lottery spam.
  5. Under Rules, choose what to check in the first list, such as Subject or Body.
  6. In the second list, choose contains.
  7. In the text box, type the word to look for, for example lottery.
  8. Under Actions, choose what happens to matching mail. Deliver to Folder moves it to a folder you pick. Discard Message deletes it.
  9. Click Create.

A green message confirms the filter. It now appears under Current Filters.

Discard Message deletes matching mail permanently, and the sender is not told. Start with Deliver to Folder until you are sure the filter catches only spam.

Useful rule ideas

  • To add more conditions, click the + button next to a rule, then choose and or or.
  • To move mail that SpamAssassin has marked, choose Spam Status, then begins with, and type Yes. Spam Filters must be turned on for this rule to work.
  • To block one sender, choose From, then contains, and type the sender's address.

Check that it worked

From another email account, send a message that contains your filter word. It should not appear in the inbox. If you used Deliver to Folder, look for it in that folder.

Common problems

Why didn't my filter catch a message?

Check the spelling of the word and whether you chose Subject or Body. Filters only check new mail. Messages that arrived before you created the filter stay where they are.

Related guides

هل كان هذا المقال مفيدًا؟