POSTCLIP(1L)

NAME
postclip - send only the headers to Postmaster

SYNOPSIS
postclip [ -v ] [ to ... ]

DESCRIPTION
postclip will forward non-delivery reports to a postmaster after deleting the body of the message. This keeps bounced mail private and helps to avoid disk space problems. postclip tries its best to keep as much of the header trail as possible. Hopefully only the original body of the message will be filtered. Only messages that have a subject that begins with 'Returned mail:' are filtered. This ensures that other mail is not accidently mucked with. Finally, note that sendmail is used to deliver the message after it has been (possibly) filtered. All of the original headers will remain intact.

You can use this with any sendmail by modifying the Postmaster alias. If you use IDA sendmail you could add the following to <machine>.m4:

    define(POSTMASTERBOUNCE, mailer-errors)

In the aliases file, add a line similar to the following:

    mailer-errors: "|/usr/local/bin/postclip postmaster"

OPTIONS

-v  Be verbose about delivery. Probably only useful when debugging postclip.

to  A list of one or more e-mail ids to send the modified Postmaster messages to. If none are specified postmaster is used.

AUTHOR
Michael S. Muegel (mmuegel@mot.com)
UNIX Applications Startup Group
Corporate Information Office, Schaumburg, IL
Motorola, Inc.

CREDITS
The original idea to filter Postmaster mail was taken from a script by Christopher Davis <ckd@eff.org>.

COPYRIGHT NOTICE
Copyright 1992, Motorola, Inc.

Permission to use, copy, modify and distribute without charge this software, documentation, etc. is granted, provided that this comment and the author's name is retained. The author nor Motorola assume any responsibility for problems resulting from the use of this software.

SEE ALSO
sendmail(8)