home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!Sirius.dfn.de!news.DKRZ-Hamburg.DE!rzsun2.informatik.uni-hamburg.de!Germany.EU.net!mcsun!sun4nl!nikhefh!e07
- From: e07@nikhefh.nikhef.nl (Eric Wassenaar)
- Newsgroups: comp.mail.sendmail
- Subject: Re: Removing msg body in IDA for postmaster
- Message-ID: <1856@nikhefh.nikhef.nl>
- Date: 4 Sep 92 20:18:59 GMT
- References: <root.715272995@merlin>
- Organization: Nikhef-H, Amsterdam (the Netherlands).
- Lines: 25
-
- In article <root.715272995@merlin>, peter@merlin.acadiau.ca (Peter Steele) writes:
- > A while back someone posted a script that could be used in IDA
- > sendmail for the POSTMASTERBOUNCE option that would remove the
- > message body, leaving only the headers.
-
- An easy way to send only the headers of bounced mail to the
- postmaster, not involving any additional filters, is to
- not use the 'OPpostmaster' option in sendmail.cf, and add
- the following to the very end of savemail() in savemail.c
-
- q = (ADDRESS *) NULL;
- sendtolist("postmaster", (ADDRESS *) NULL, &q);
- (void) returntosender("Delivery failure", q, FALSE);
-
- This will generate a separate message to the recipient given
- as the first parameter of sendtolist(). The FALSE parameter
- of returntosender() causes the body of the bounced message
- to be suppressed.
-
- Eric Wassenaar
- --
- Organization: NIKHEF-H, National Institute for Nuclear and High-Energy Physics
- Address: Kruislaan 409, P.O. Box 41882, 1009 DB Amsterdam, the Netherlands
- Phone: +31 20 592 5012, Home: +31 20 6909449, Telefax: +31 20 592 5155
- Internet: e07@nikhef.nl
-