HP-UX Mailing Services Administrator's Guide

Configuring and Administering Sendmail
Creating Sendmail Aliases
Chapter 262
filename
An absolute pathname on the local machine.
Sendmail appends the message to the file if
the following conditions are true:
The file exists, is not executable, and is
writable by all.
The directory where the file resides is
readable and searchable by all. Example:
public: /tmp/publicfile
terminal: /dev/tty
Mail addressed to public is appended to
/tmp/publicfile. Mail addressed to
terminal appears on the sender’s terminal.
"|
command
" Sendmail pipes the message as standard input
to the specified command. The double quotes
are required to protect the command line from
being interpreted by Sendmail. Commands
must be listed as full pathnames.
If stdout and stderr are not redirected, they
are not printed to the terminal, and they
disappear. However, if a command returns a
nonzero exit status, its output to stderr
becomes part of the Sendmail error transcript.
The command is executed by the prog mailer
defined in the configuration file. In the
configuration file supplied with HP-UX, the
prog mailer is configured as “sh -c”. For
example:
prog:"|/usr/bin/cat|/usr/bin/sed
's/Z/z/g' > /tmp/outputfile"
Mail addressed to prog is saved in
/tmp/outputfile with all capital Z’s changed
to lowercase z’s.
Table 2-1 Mailing List Options (Continued)
Option Description