home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / mail / sendmail / 2139 next >
Encoding:
Internet Message Format  |  1992-08-25  |  2.9 KB

  1. Xref: sparky comp.mail.sendmail:2139 comp.sys.sgi:12853
  2. Path: sparky!uunet!gatech!darwin.sura.net!jvnc.net!netnews.upenn.edu!netnews.noc.drexel.edu!king.mcs.drexel.edu!queen.mcs.drexel.edu!gcmastra
  3. From: gcmastra@mcs.drexel.edu (Chris Mastrangelo)
  4. Newsgroups: comp.mail.sendmail,comp.sys.sgi
  5. Subject: Use of .forward with MH under IRIX 4.0.5
  6. Message-ID: <1992Aug25.165049.8894@mcs.drexel.edu>
  7. Date: 25 Aug 92 16:50:49 GMT
  8. Sender: gcmastra@mcs.drexel.edu (Chris Mastrangelo)
  9. Organization: Drexel University
  10. Lines: 63
  11.  
  12.  
  13. Hi! I recently saw a post from iwen@calvin.sbc.com (Andrew B. Liwen)
  14. about using .forward to execute another program when mail arrives.
  15. He was on a Sun, I am on a Silicon Graphics Indigo running IRIX 4.0.5.
  16. I also have "MH" with "POP."
  17.  
  18. What I want to do is notify the user whenever new mail arrives, so I
  19. have been experimenting on my own account. Everything I am doing is
  20. right out of the man pages for mhook and sendmail.
  21.  
  22. According to the "mhook" man page: 
  23.  
  24.           A receive-mail hook is a program that is run whenever you
  25.           receive a mail message.  You do NOT invoke the hook
  26.           yourself, rather the hook is invoked on your behalf by
  27.           SendMail, when you include the line
  28.                    | /usr/local/lib/mh/slocal -user $USER
  29.           in your .forward file in your home directory.
  30.  
  31. Here is my .forward file:
  32. \mastracl
  33. "| /usr/local/lib/mh/slocal -user mastracl"
  34. ~
  35.  
  36. Then slocal looks at the .maildelivery file; here is mine:
  37. *       -       |       R       "/usr/local/lib/mh/rcvtty -nobell"
  38. ~
  39.  
  40. I have the permissions set to 755 for BOTH the .forward and .maildelivery
  41. files just to be safe; in my home directory:
  42.  
  43. -rwxr-xr-x   1 mastracl user          55 Aug 25 11:41 .forward
  44. -rwxr-xr-x   1 mastracl user          43 Aug 25 11:28 .maildelivery
  45.  
  46. So far it looks good. When I send myself mail from another node, I get
  47. the notice at the console that mail has arrived, but when I try to look
  48. at it my mail drop is empty, and the permissions have been changed to 
  49. 600 instead of 660; (in /usr/mail):
  50.                                                              
  51. -rw-------   1 mastracl user           0 Aug 25 11:42 mastracl
  52.  
  53. Also the GROUP on my mailbox has been changed to "user" instead of
  54. "mail." As a result, all subsequent attempts to send mail to that
  55. node fail completely. Also, an error message gets sent back to the
  56. sending node with the following message:
  57.  
  58.    ----- Transcript of session follows -----
  59. 554 "| /usr/local/lib/mh/slocal -user mastracl" ... unknown mailer error 1
  60.  
  61. There is also a corresponding error message in my /usr/adm/SYSLOG file.
  62.  
  63. Now that I have given you all this information, is there anyone out there
  64. who can help me?!? What am I doing wrong?!?!?
  65.  
  66. Thanks in advance.
  67.  
  68. - Chris Mastrangelo         gcmastra@mcs.drexel.edu
  69.   Math & Computer Science Dept.
  70.   Drexel University, Philadelphia PA
  71.  
  72.   Currently a Summer Intern at:
  73.   SmithKline Beecham Pharmaceuticals
  74.   Research & Development Division, Upper Merion, PA
  75.