home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / mail / sendmail / 3160 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.9 KB  |  56 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!nih-csl!weisen
  3. From: weisen@alw.nih.gov (Neil Weisenfeld)
  4. Subject: .forward on multiple systems
  5. Message-ID: <1993Jan12.214702.20374@alw.nih.gov>
  6. Sender: postman@alw.nih.gov (AMDS Postmaster)
  7. Organization: National Inst. of Health, DCRT, CSL
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. Date: Tue, 12 Jan 1993 21:47:02 GMT
  10. Lines: 44
  11.  
  12. I have what is probably a common problem.  I want to have a .forward
  13. such as the following:
  14.  
  15. "|/xxx/yyy/zzz/bin/program"
  16.  
  17. so that "program" will work like ``deliver'' to deliver my mail.  Now, the 
  18. problem is that my home directory is mounted by a hundred or so machines
  19. of different architectures.  Right now I am doing something like this:
  20.  
  21. "|/xxx/yyy/zzz/bin/runprogram"
  22. \weisen@daedalus.dcrt.nih.gov
  23.  
  24. where ``daedalus.dcrt.nih.gov'' is the machine that I want mail to go to and
  25. runprogram is a /bin/sh script (hopefully guaranteed to run on all of the
  26. architectures) that does something like:
  27.  
  28. if [ `hostname` != "daedalus.dcrt.nih.gov" ]
  29. then
  30. exit 0
  31. fi
  32. program
  33.  
  34.  
  35. Now, this works o.k., but on daedalus the mail also gets delivered to
  36. my system mailbox.  I guess what I need is a portable way to say
  37. ``bounce this mail to daedalus'' from the shell script so I can remove
  38. the \weisen@daedalus line from my .forward and have the mail forwarded
  39. to daedalus.  I need to run ``program'' on daedalus so it will have
  40. access to daedalus' local disk.  I've tried just pipeing it into
  41. sendmail, but this doesn't seem to preserve all of the headers.
  42. Ideally I'd want something that would result in just another Received:
  43. line and would leave the other headers the same.
  44.  
  45. Anyone have a suggestion?
  46.  
  47.  
  48. Thanks,
  49. Neil
  50.  
  51. --
  52. Neil I. Weisenfeld                    National Institutes of Health
  53. Computer Engineer                     Building 12A, Room 2033
  54. weisen@alw.nih.gov                    Bethesda, MD 20892
  55. uunet!nih-csl!weisen                  phone: (301) 402-2788
  56.