.TH POSTCLIP 1L \" \" mmuegel \" /usr/local/ustart/src/mail-tools/dist/foo/man/postclip.1,v 1.1 1993/07/28 08:08:25 mmuegel Exp \" .ds mp \fBpostclip\fR .SH NAME \*(mp - send only the headers to Postmaster .SH SYNOPSIS \*(mp [ \fB-v\fR ] [ \fIto\fR ... ] .SH DESCRIPTION \*(mp 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. \*(mp 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 \fBsendmail\fR is used to deliver the message after it has been (possibly) filtered. All of the original headers will remain intact. .sp 1 You can use this with any \fBsendmail\fR by modifying the Postmaster alias. If you use IDA \fBsendmail\fR you could add the following to .m4: .sp 1 .RS define(POSTMASTERBOUNCE, mailer-errors) .RE .sp 1 In the aliases file, add a line similar to the following: .sp 1 .RS mailer-errors: "|/usr/local/bin/postclip postmaster" .RE .SH OPTIONS .IP \fB-v\fR Be verbose about delivery. Probably only useful when debugging \*(mp. .IP \fIto\fR A list of one or more e-mail ids to send the modified Postmaster messages to. If none are specified postmaster is used. .SH AUTHOR .nf Michael S. Muegel (mmuegel@mot.com) UNIX Applications Startup Group Corporate Information Office, Schaumburg, IL Motorola, Inc. .fi .SH CREDITS The original idea to filter Postmaster mail was taken from a script by Christopher Davis . .SH COPYRIGHT NOTICE Copyright 1992, Motorola, Inc. .sp 1 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. .SH SEE ALSO .nf \fBsendmail(8)\fR .fi