home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / mail / mh / 1066 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  3.3 KB

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