NAME
SYNOPSIS
DESCRIPTION
OPTIONS
INTERFACE
FILES
SEE ALSO
AUTHOR

## NAME

errormail - zmailer error message transport agent

## SYNOPSIS

errormail [ -c channel ] [ -V ]

## DESCRIPTION

errormail is a ZMailer transport agent which is usually only run by the scheduler(8) program to produce error mes- sages from canned forms. The errormail program must be invoked with the same current directory as the sched- uler, namely POSTOFFICE/transport.

The program will interpret the host part of an address destined for its channel as a file name in the MAIL- SHARE/forms directory. It will submit a new mail message consisting of the concatenation of:

- a To: header containing the sender address (original error return address),

- the file contents of the specified form,

- the user name of each recipient address with some descriptive text indicating the specific
error, and

- the message file being processed.

This program is used to report errors on behalf of the ZMailer router(8) and scheduler(8) programs, and by impli- cation also report delivery failures for the various transport agents. The primary exception is syntax errors during message parsing in the router.

## OPTIONS

-c channel -V |  | specifies which channel name should be keyed on. The default is error. prints a version message and exits. |

## INTERFACE

This program reads in processable file names relative to the current working directory of the scheduler (namely: $POSTIOFFICE/transport/). Optionally on the same line the scheduler may tell which host is to be looked for from the recipients of the message.

relative-spool-path [ <TAB> hostname ]

This program produces diagnostic output on the standard output. Normal diagnostic output is of the form:

id/offset<TAB>notify-data<TAB>status message

where id is the inode number of the message file, offset is a byte offset within its control file where the address being reported on is kept, status is one of ok, error, or deferred, and the message is descriptive text associated with the report. The text is terminated by a linefeed. Any other format (as might be produced by subprocesses) is passed to standard output for logging in the scheduler log.

The exit status is a code from <sysexits.h>.

## FILES

/etc/zmailer.conf
/var/spool/postoffice (POSTOFFICE)
/local/share/mail/forms (MAILSHARE/forms)

## SEE ALSO

scheduler(8), router(8)

## AUTHOR

This program authored and copyright by:
Rayan Zachariassen <rayan@cs.toronto.edu>