home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.sendmail
- Path: sparky!uunet!nih-csl!weisen
- From: weisen@alw.nih.gov (Neil Weisenfeld)
- Subject: .forward on multiple systems
- Message-ID: <1993Jan12.214702.20374@alw.nih.gov>
- Sender: postman@alw.nih.gov (AMDS Postmaster)
- Organization: National Inst. of Health, DCRT, CSL
- X-Newsreader: TIN [version 1.1 PL6]
- Date: Tue, 12 Jan 1993 21:47:02 GMT
- Lines: 44
-
- I have what is probably a common problem. I want to have a .forward
- such as the following:
-
- "|/xxx/yyy/zzz/bin/program"
-
- so that "program" will work like ``deliver'' to deliver my mail. Now, the
- problem is that my home directory is mounted by a hundred or so machines
- of different architectures. Right now I am doing something like this:
-
- "|/xxx/yyy/zzz/bin/runprogram"
- \weisen@daedalus.dcrt.nih.gov
-
- where ``daedalus.dcrt.nih.gov'' is the machine that I want mail to go to and
- runprogram is a /bin/sh script (hopefully guaranteed to run on all of the
- architectures) that does something like:
-
- if [ `hostname` != "daedalus.dcrt.nih.gov" ]
- then
- exit 0
- fi
- program
-
-
- Now, this works o.k., but on daedalus the mail also gets delivered to
- my system mailbox. I guess what I need is a portable way to say
- ``bounce this mail to daedalus'' from the shell script so I can remove
- the \weisen@daedalus line from my .forward and have the mail forwarded
- to daedalus. I need to run ``program'' on daedalus so it will have
- access to daedalus' local disk. I've tried just pipeing it into
- sendmail, but this doesn't seem to preserve all of the headers.
- Ideally I'd want something that would result in just another Received:
- line and would leave the other headers the same.
-
- Anyone have a suggestion?
-
-
- Thanks,
- Neil
-
- --
- Neil I. Weisenfeld National Institutes of Health
- Computer Engineer Building 12A, Room 2033
- weisen@alw.nih.gov Bethesda, MD 20892
- uunet!nih-csl!weisen phone: (301) 402-2788
-