maillog(1M) maillog(1M)
NAME
maillog - standard mail logger
SYNOPSIS
maillog [-f date_format] [-m mode] [-O original_recipient] [-o output_file]
return_path recipient [other_info . . .] [-- . . .]
DESCRIPTION
/usr/lib/mail/surrcmd/maillog is a standard mail logger that
may be used within the surrogate file as a standard mail post
processor. For example:
'.+' '.+' '> W=1;B=*; maillog -o /var/mail/:log'
'-O %O %R %n %l --'
'.+' '.+' 'Errors W=1;B=*; maillog -o /var/mail/:errors'
'-O %O %R %n %l --'
maillog is approximately equivalent to
echo "`date` $1 -> $2 ($3 ...)" >> /var/mail/:log/Monday
maillog recognizes the following options:
-f Specify an alternate format to use for the date.
date_format uses the format specifiers for strftime(3C).
-m Specify the mode of the output_file; the mode is
modified to include group write permission to permit
group mail to write to the file. (The mode used also
does not include execute permission.)
-o Specify a directory to hold the files to append the
output. Otherwise the output is written to the standard
output.
If the output_directory does not exist, it will be
created with mode 0770.
-O If original_recipient is specified and is different from
the recipient name, it is recorded after the recipient
name.
If an argument of -- is given, subsequent arguments are used
as another recipient, complete with new options.
Copyright 1994 Novell, Inc. Page 1
maillog(1M) maillog(1M)
If the Enhanced Security Utilities are installed and running,
/var/mail is a Multi-Level Directory; a separate log file is
created for each Mandatory Access Control level at which mail
is delivered.
REFERENCES
mail(1), mailsurr(4), strftime(3C)
Copyright 1994 Novell, Inc. Page 2