HP-UX Mailing Services Administrator's Guide (B2355-91064)
Table 2-3 Mailing List Options (continued)
DescriptionOption
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.
"| command"
Any mail addressed to the alias is sent to all the recipients listed in the
included file. The file must be a full pathname. Nonroot users can
create :include files to maintain their mailing lists. An :include
file can contain anything that is specified in the right side of an alias
definition. Following is an example alias definition:
dogbreeders: :include:/users/andrea/dogbreeders
Following is an example :include file:
#file included in dogbreeders alias definition:
terriers@akc.ny.com, coonhounders@ukc.sc.com
:include:filename
An alias can be continued across multiple lines in the aliases file. Lines beginning with
blanks or tabs are continuation lines.
The aliases file can contain comment lines, which begin with the pound sign (#). Blank
lines in the aliases file are ignored.
NOTE: You cannot address messages directly to file names, command lines, or
:include files. Sendmail will deliver messages to these only if they appear in the right
side of an alias definition.
Configuring Owners for Mailing Lists
Sendmail enables you to configure an owner for a mailing list, because the sender of
a message often does not control the mailing list to which the message is addressed. If
Sendmail encounters an error while attempting to deliver a message to the members
62 Configuring and Administering Sendmail