Linux Training

Linux training for private, public & voluntary sector.

0800 024 8425

City LinUX sample scripts - blacklist

NAME

blacklist - updates the /etc/mail/access.db database.

SYNOPSIS

<cmd>| blacklist [ -l ]|[ -V ]

AVAILABILITY

blacklist is a Bourne shell script which should work equally well on all versions of UNIX and Linux.

DESCRIPTION

blacklist is designed to be put on a pipe recieving e-mail messages. It may be invoked manually (see EXAMPLES

below) but is best used used to process messages bounced to the blacklist user automatically.

OPTIONS

-l    turns on logging using the syslog facility.

-V    Prints the script version and exits.

FILES

/etc/mail/access, /etc/mail/access.db.

EXAMPLES

The following line is added to the " /etc/mail/aliases " file. Logging is enabled.

blacklist:	"|/usr/local/etc/blacklist -l"

To manually invoke the script:

cat <mailbox> |/usr/local/etc/blacklist

BUGS

None known

AUTHOR

Clifford W Fulford, City Linux. Contact fulford@fulford.net or +44 (0)793 572 8612


The layout and associated style sheets for this page are taken from the World Wide Web Consortium and used here under the W3C software licence.