home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / mail / sendmail / 2209 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.5 KB

  1. 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
  2. From: e07@nikhefh.nikhef.nl (Eric Wassenaar)
  3. Newsgroups: comp.mail.sendmail
  4. Subject: Re: Removing msg body in IDA for postmaster
  5. Message-ID: <1856@nikhefh.nikhef.nl>
  6. Date: 4 Sep 92 20:18:59 GMT
  7. References: <root.715272995@merlin>
  8. Organization: Nikhef-H, Amsterdam (the Netherlands).
  9. Lines: 25
  10.  
  11. In article <root.715272995@merlin>, peter@merlin.acadiau.ca (Peter Steele) writes:
  12. > A while back someone posted a script that could be used in IDA
  13. > sendmail for the POSTMASTERBOUNCE option that would remove the
  14. > message body, leaving only the headers.
  15.  
  16. An easy way to send only the headers of bounced mail to the
  17. postmaster, not involving any additional filters, is to
  18. not use the 'OPpostmaster' option in sendmail.cf, and add
  19. the following to the very end of savemail() in savemail.c
  20.  
  21.     q = (ADDRESS *) NULL;
  22.     sendtolist("postmaster", (ADDRESS *) NULL, &q);
  23.     (void) returntosender("Delivery failure", q, FALSE);
  24.  
  25. This will generate a separate message to the recipient given
  26. as the first parameter of sendtolist(). The FALSE parameter
  27. of returntosender() causes the body of the bounced message
  28. to be suppressed.
  29.  
  30. Eric Wassenaar
  31. -- 
  32. Organization: NIKHEF-H, National Institute for Nuclear and High-Energy Physics
  33. Address: Kruislaan 409, P.O. Box 41882, 1009 DB Amsterdam, the Netherlands
  34. Phone: +31 20 592 5012, Home: +31 20 6909449, Telefax: +31 20 592 5155
  35. Internet: e07@nikhef.nl
  36.