Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual page 230

Table of Contents

Advertisement

Chapter 11. Email
placed in the single spool file called
the
environment variable. An MUA can then view messages in this file.
MAILDIR
A basic recipe, such as this, can be placed at the end of all
default location.
The following example matched messages from a specific email address and throws them
away.
:0 * ^From: spammer@domain.com /dev/null
With this example, any messages sent by
device, deleting them.
Caution
Be certain that rules are working as intended before sending messages to
/dev/null
messages, and those messages disappear, it becomes difficult to troubleshoot
the rule.
A better solution is to point the recipe's action to a special mailbox, which can be
checked from time to time to look for false positives. Once satisfied that no
messages are accidentally being matched, delete the mailbox and direct the
action to send the messages to
The following recipe grabs email sent from a particular mailing list and places it in a specified
folder.
:0: * ^(From|CC|To).*tux-lug tuxlug
Any messages sent from the
mailbox automatically for the MUA. Note that the condition in this example matches the
message if it has the mailing list's email address on the
Consult the many Procmail online resources available in
more detailed and powerful recipes.
4.2.6. Spam Filters
Because it is called by Sendmail, Postfix, and Fetchmail upon receiving new emails, Procmail
can be used as a powerful tool for combating spam.
This is particularly true when Procmail is used in conjunction with SpamAssassin. When used
together, these two applications can quickly identify spam emails, and sort or destroy them.
206
new-mail.spool
spammer@domain.com
for permanent deletion. If a recipe inadvertently catches unintended
/dev/null
tux-lug@domain.com
, located within the directory specified by
files to direct messages to a
rc
are sent to the
.
mailing list are placed in the
,
, or
lines.
From
CC
To
Section 6, "Additional Resources"
/dev/null
tuxlug
for

Advertisement

Table of Contents
loading

Table of Contents