home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!rutgers!netnews.upenn.edu!netnews.noc.drexel.edu!king.mcs.drexel.edu!queen.mcs.drexel.edu!gcmastra
- From: gcmastra@mcs.drexel.edu (Chris Mastrangelo)
- Newsgroups: comp.mail.mh
- Subject: Use of .forward under IRIX 4.0.5
- Message-ID: <1992Aug27.134514.20268@mcs.drexel.edu>
- Date: 27 Aug 92 13:45:14 GMT
- Sender: gcmastra@mcs.drexel.edu (Chris Mastrangelo)
- Organization: Drexel University
- Lines: 73
-
- Note: this message was already cross posted to comp.mail.sendmail.
- So far I have received two responses which have given me hints
- but still not nailed down the problem. SO I thought I would post
- here too:
-
- One other change: I am currently running IRIX 4.0.5, but the users
- report that the .forward has not worked since we upgraded from
- IRIX 3.3.2 to 4.0.2 several months ago.
-
- *** Original Post:
-
- Hi! I recently saw a post from iwen@calvin.sbc.com (Andrew B. Liwen)
- about using .forward to execute another program when mail arrives.
- He was on a Sun, I am on a Silicon Graphics Indigo running IRIX 4.0.5.
- I also have "MH" with "POP."
-
- What I want to do is notify the user whenever new mail arrives, so I
- have been experimenting on my own account. Everything I am doing is
- right out of the man pages for mhook and sendmail.
-
- According to the "mhook" man page:
-
- A receive-mail hook is a program that is run whenever you
- receive a mail message. You do NOT invoke the hook
- yourself, rather the hook is invoked on your behalf by
- SendMail, when you include the line
- | /usr/local/lib/mh/slocal -user $USER
- in your .forward file in your home directory.
-
- Here is my .forward file:
- \mastracl
- "| /usr/local/lib/mh/slocal -user mastracl"
- ~
-
- Then slocal looks at the .maildelivery file; here is mine:
- * - | R "/usr/local/lib/mh/rcvtty -nobell"
- ~
-
- I have the permissions set to 755 for BOTH the .forward and .maildelivery
- files just to be safe; in my home directory:
-
- -rwxr-xr-x 1 mastracl user 55 Aug 25 11:41 .forward
- -rwxr-xr-x 1 mastracl user 43 Aug 25 11:28 .maildelivery
-
- So far it looks good. When I send myself mail from another node, I get
- the notice at the console that mail has arrived, but when I try to look
- at it my mail drop is empty, and the permissions have been changed to
- 600 instead of 660; (in /usr/mail):
-
- -rw------- 1 mastracl user 0 Aug 25 11:42 mastracl
-
- Also the GROUP on my mailbox has been changed to "user" instead of
- "mail." As a result, all subsequent attempts to send mail to that
- node fail completely. Also, an error message gets sent back to the
- sending node with the following message:
-
- ----- Transcript of session follows -----
- 554 "| /usr/local/lib/mh/slocal -user mastracl" ... unknown mailer error 1
-
- There is also a corresponding error message in my /usr/adm/SYSLOG file.
-
- Now that I have given you all this information, is there anyone out there
- who can help me?!? What am I doing wrong?!?!?
-
- Thanks in advance.
-
- - Chris Mastrangelo gcmastra@mcs.drexel.edu
- Math & Computer Science Dept.
- Drexel University, Philadelphia PA
-
- Currently a Summer Intern at:
- SmithKline Beecham Pharmaceuticals
- Research & Development Division, Upper Merion, PA
-