Mail Filtering with Procmail
Procmail is an open-source mail processor, also known as "mail filter" that helps filtering your mail and sort incoming mail according to sender, subject line, length of message, keywords in the message, etc.
To set Procmail, you need to log into CP+ at http://cp_host_domain:20000/ with your domain account's login and password.
On the domain user's CP+ menu, click the Procmail Mail Filter icon. You will have the following options to choose from:
- Add a new filter action: to set delivery action details and conditions.
- Add a new conditional block: to set a new condition to delivery action.
- Add a new variable setting: to create a custom Procmail variable setting.
- Add a new include file: to include the a set of procmail rulesets.
- Manually edit configuration: to edit the Procmail configuration file /home/example/.procmailrc manually.
Adding a new filter action
- Click Add a new filter action on the Procmail Mail Filter page.

- Choose the delivery action to be taken from the drop-down box. Enter details of this target action in the field.
- Set necessary delivery method by checking the corresponding boxes.
- Set Delivery lock file, optionally.
- Choose Action conditions from the drop-down box and use the field to set details of this conditions.
- Click Create to preserve this filter rule.
From now on all your messages will be filtered according to the filter method you have set.
To change filter action settings, click the name of the action and make sure to save all changes when done.
Adding a new conditional block
- Click Add a new conditional block on the Procmail Mail Filter page.

- Enter Procmail code to execute according to requirements of Procmail.
- Set necessary delivery method by checking the corresponding boxes.
- Set Delivery lock file, optionally.
- Choose Action conditions from the drop-down box and use the field to set details of this conditions.
- Click Create to save this conditional block.
To change or edit conditional block, click the block name in the Action to take section and make sure to save all changes when done. 
Adding a new variable setting
- Click Add a new variable setting on the Procmail Mail Filter page.

- Enter variable name and value.
- Click Create to save this variable setting.
To change or edit variable setting, click the variable in the Actions list and make sure to save all changes when done. 
Adding a new include file
- Click Add a new variable setting on the Procmail Mail Filter page.

- Enter file location or find file using the browse button.
- Click Create to save this included file.
To change location of the include file, click the file in the Actions list and make sure to save all changes when done. 
Editing configuration manually
This page can be used to manually edit the Procmail configuration file /home/example/.procmailrc. Be careful, as no syntax checking will be done.
- Click the Manually edit configuration link on the Procmail Mail Filter page.
- On the page that shows edit Procmail configuration.
- Click Save.

|