Prev | Current Page 480 | Next

Christopher Negus

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

Do this by adding the mailbomber??™s e-mail address or system name
to the access file located in the /etc/mail directory.
Each line of the access file contains an e-mail address, hostname, domain, or IP address followed
by a tab and then a keyword specifying what action to take when that entity sends you a message.
Valid keywords are OK, RELAY, REJECT, DISCARD, and ERROR. Using the REJECT keyword will
cause a sender??™s e-mail to be bounced back with an error message. The keyword DISCARD will
cause the message to be silently dropped without sending an error back. You can even return a
custom error message by using the ERROR keyword.
Thus, an example /etc/mail/access file may look similar to this:
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
#
# Senders we want to Block
#
evilmailer@yahoo.com REJECT
stimpy.glaci.com REJECT
cyberpromo.com DISCARD
199.170.176.99 ERROR:???550 Die Spammer Scum!???
199.170.177 ERROR:???550 Email Refused???
As with most Linux configuration files, lines that begin with a pound (#) sign are comments.


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