Issue
What are some examples of domain filtering?
Solution
Detailed below are a few examples of the most common uses for domain filtering.
As of 3.4, the Administration Suite can be used to set up content filters. From the Home page, select Content Filtering. See the online help for more information.
Using the CLI to Create Primary Domain Filters
To discard mail sent to a specific person:
Filter Add (domain=primary) "Filter Trash It" Discard "" Anyof Stop
:envelopeto matches "jdoe*"
.
Where:
- Filter Trash It is the text name of the filter
- jdoe@example.com is the recipient address as specified in the email message envelope
- The dot (.) is entered on a line by itself after any filter rules to indicate you have finished the command string.
To discard mail received from a specific person:
Filter Add (domain=primary) "Filter No Mail From" Discard "" Anyof Stop
:envelopefrom matches "jdoe*"
.
Where:
- Filter No Mail From is the text name of the filter
- jdoe@example.com is the sender address as specified in the email message envelope
- The dot (.) is entered on a line by itself after any filter rules to indicate you have finished the command string.
To reject (bounce) mail from a specific domain:
Filter Add (domain=primary) "Filter SPAMer" Reject "" Anyof Stop
:envelopefrom matches "*@spamer.com"
.
Where:
- Filter SPAMer is the text name of the filter
- *@spamer.com is the sender address as specified in the email message envelope
- The dot (.)is entered on a line by itself after any filter rules to indicate you have finished the command string.
To redirect mail to someone other than the original recipient:
Filter Add (domain=primary) "Filter Redirect" Redirect "nuser@example2.com" Anyof Stop
:envelopeto matches "jdoe*"
.
Where:
- Filter Redirect is the text name of the filter
- nuser@example.com is the email address to where redirected email should be sent
- jdoe@example.com is the recipient's address as specified in the email message envelope
- The dot (.) is entered on a line by itself after any filter rules to indicate you have finished the command string.
Multiple filters can be used. For example, to redirect mail and still allow it to continue on to the originally designated recipient, the following two filters are required:
Filter Add (domain=primary) "DomainJunkmailRedirect" Redirect "+junkmail" Allof Continue
x-junkmail matches "*"
.
Filter Add (domain=primary) "DomainJunkmailKeep" Keep "" Allof Stop
x-junkmail matches "*"
.
Comments
0 comments
Please sign in to leave a comment.