Prev | Current Page 479 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

You
can use the Procmail e-mail??“filtering tool or, if you are using sendmail as your mail transport agent,
configure your sendmail daemon.
Blocking Mail with Procmail
The Procmail e-mail??“filtering tool, installed by default with Fedora, RHEL, and many other Linux
systems, is tightly integrated with the sendmail e-mail daemon; thus, it can be used to selectively
block or filter out specific types of e-mail. You can learn more about Procmail at the Procmail Web
site: www.procmail.org.
226
Running the Show Part II
To enable Procmail for your user account, create a .procmailrc file in your home directory.
The file should be mode 0600 (readable by you but nobody else). Type the following, replacing
evilmailer with the actual e-mail address that is mailbombing you:
# Delete mail from evilmailer
:0
* ^From.*evilmailer
/dev/null
The Procmail recipe looks for the From line at the start of each e-mail to see if it includes the string
evilmailer. If it does, the message is sent to /dev/null (effectively throwing it away).
Blocking Mail with sendmail
The Procmail e-mail tool works quite well when only one user is being mailbombed. If, however, the
mailbombing affects many users, you should probably configure your sendmail daemon to block
all e-mail from the mailbomber.


Pages:
467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491