TechSpace Knowledgebase
Search:     Advanced search
Browse by category:
Contact Us

How to Create Mail Filter Rules For Mailing Lists

Views: 175
Votes: 0
Posted: 29 Apr, 2016
by:
Updated: 30 Apr, 2016
by:

Overview

This document explains how to create mail filter rules in cPanel's Mailing Lists interface (Home >> Mail >> Mailing Lists). Mail filters allow you to control which email messages that your server delivers.

To control which email messages that your server delivers to your mailing lists, use Mailman's Spam filters interface. To access Mailman'sSpam filters interface, click the Manage link that corresponds to the mailing list that you wish to edit.

Important:

Mailman's Spam Filters feature requires that you enable Apache SpamAssassin™. To enable Apache SpamAssassin for your cPanel account, select Enable Apache SpamAssassin in cPanel's Apache SpamAssassin interface (Home >> Mail >> Apache SpamAssassin).

To access Mailman's Spam filters interface, click Manage for the mailing list that you wish to configure.

Note:

Generally, the recipient does not receive the BCC field in an email's header. For this reason, you cannot use the BCC field in a filter.

How to create a mail filter rule

To create a mail filter rule with the Header filters section of the Spam filters interface, perform the following steps:

  1. In the Spam Filter Rule 1 text box, enter a regular expression (regex) that matches the messages to which to apply an action, for example:

    X-Spam-Status:\s+Yes

    Notes:

    • This example rule applies to any message that SpamAssassin scores as spam.
    • The number of plus sign characters (+) indicates the Apache SpamAssassin spam score.
    • Apache SpamAssassin adds information to the header of each mail message that it reviews. You can use this information to determine which mail filter rules to use.
  2. Next to Action:, select the action for Mailman to perform on the messages that match the filter. The following table describes the available options:

    Option
    Explanation
    Defer This option disables the filter rule.
    Hold This option directs Mailman to hold the messages that match the filter rule until a moderator approves it.
    Reject This option directs Mailman to reject the messages that match the filter rule.
    Discard This option directs Mailman to delete the messages that match the filter rule.
    Accept This option directs Mailman to accept the messages that match the filter rule.
  3. Click Submit Your Changes.

Legacy anti-spam filters

To create a mail filter rule with the Legacy anti-spam filters section of the Spam filters interface, perform the following steps:

  1. In the Legacy anti-spam filters text box, enter the header information to filter.
  2. Click Submit Your Changes.

Note:

A moderator of the mailing list must approve the messages that match any spam filters in the Legacy anti-spam filters section of theSpam filters interface.

Ref: https://documentation.cpanel.net/display/CKB/How+to+Create+Mail+Filter+Rules+For+Mailing+Lists 

Others in this Category
document Import contacts from Google Gmail to Outlook
document Microsoft : Autodiscover Service
document How to access cPanel
document Access webmail from the cPanel interface
document How to use SSH to log in to the command line
document cPanel & WHM service URLs
document How to Configure Mail Filters
document How to Configure the Apache SpamAssassin Report_Safe Option
document How to Create a Spam Email Filter
document How do I set up an out-of-office reply for incoming emails?
document How to Set Email Send Limits
document How to Set Up a cPanel Email Account for iOS
document How to Set Up a cPanel Email Account for How to Set Up a cPanel Email Account for iOS
document IMAP vs. POP3
document How to Copy Addon Domains to a New Account
document Introducing Send Email in Access 2013 web apps
document How to always pop-out an email window in Outlook 2013
document Tutorial: Outlook signature image with hyperlink
document Fix for Outlook: “Contacting the server for information”
document "Attachment size exceeds the allowable limit" error when you add a large attachment to an email message in Outlook
document Outlook 2013 max file limit: “The file you’re attaching is bigger than the server allows.”
document Outlook hangs on loading profile? Solutions
document Message stuck in Outbox
document How To Convert A POP/IMAP Mailbox To Exchange / Exchange Mailbox to POP/IMAP
document 550 Relay Not Permitted error message when sending mail
document Turn Thunderbird into the Ultimate Gmail IMAP Client
document Set up email in Android email app



RSS