home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.mail.sendmail:2139 comp.sys.sgi:12853
- 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
- From: gcmastra@mcs.drexel.edu (Chris Mastrangelo)
- Newsgroups: comp.mail.sendmail,comp.sys.sgi
- Subject: Use of .forward with MH under IRIX 4.0.5
- Message-ID: <1992Aug25.165049.8894@mcs.drexel.edu>
- Date: 25 Aug 92 16:50:49 GMT
- Sender: gcmastra@mcs.drexel.edu (Chris Mastrangelo)
- Organization: Drexel University
- Lines: 63
-
-
- 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
-