home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / mail / mush / 325 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.9 KB  |  62 lines

  1. Newsgroups: comp.mail.mush
  2. Path: sparky!uunet!gatech!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
  3. From: bart@zigzag.UUCP (Bart Schaefer)
  4. Subject: Re: Backend for sendmail wanted (that won't crash MUSH)
  5. Message-ID: <9209070835.ZM13799@zigzag>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Reply-To: bart@zigzag.z-code.com
  8. Organization: The Internet
  9. Date: Mon, 7 Sep 1992 15:35:20 GMT
  10. Lines: 50
  11.  
  12. On Sep 6,  8:30pm, Jeffrey L Bromberger wrote:
  13. } Subject: Backend for sendmail wanted (that won't crash MUSH)
  14. }
  15. } I am running a vanilla SysV machine, and I'm looking for a back end for
  16. } sendmail.  This should be able to add local mail to mailboxes.
  17.  
  18. If you've got sendmail you aren't really vanilla SysV. :-)
  19.  
  20. } You see, I have this "pseudo-hack" that I'm using now, but there are
  21. } problems with the MUA called MUSH.  Whenever I am using mush, and mail
  22. } comes in, there's a 50/50 chance I get the following messages:
  23. } Unable to lock "/usr/spool/mail/jeffrey": Permission denied
  24. } Unable to open /usr/spool/mail/jeffrey: Permission denied
  25. } Can't load new mail: "/usr/spool/mail/jeffrey" may be corrupted!
  26. } I have no option at this choice but to abort mush and lose the changes
  27. } I have made to my mailbox.  This gets very frustrating :-(
  28.  
  29. On a vanilla SysV machine, you should be compiling Mush with DOT_LOCK
  30. defined and the binary needs to be set-group-id to group "mail".  I'm
  31. guessing (since you are asking about local delivery agents) that you
  32. have the admin permissions necessary to do this.  Mush revokes its
  33. setgid permissions when it starts up and only reinstates them when it
  34. needs to lock the spoolfile.  These changes should make Mush work fine
  35. with SysV /bin/mail as the local delivery agent.
  36.  
  37. If you already have DOT_LOCK and setgid "mail", then I don't know what
  38. the problem is.  It looks (from the source) like the locking call to
  39. fcntl(fd, F_SETLKW, &l); is returning -1 and errno = EPERM, but I can't
  40. imagine why it would fail with EPERM only part of the time.  (If the
  41. fopen() were failing with EPERM, you wouldn't see the "Unable to lock",
  42. so it doesn't have anything to do with mandatory locking or the like.)
  43.  
  44. } My request - any suggestions on the best one to use?
  45.  
  46. Either Chip Salzenberg's "deliver" or S.R. van den Berg's "procmail".
  47. (Does "berg" mean "local delivery agent" in Dutch or something? ;-)
  48. Patch #5 for mush will include procmail's NFS-secure lockfile creation
  49. routines; "deliver" uses a similar technique.  You can do a lot more
  50. run-time customization of deliver; procmail is smaller and possibly a
  51. little more robust in the face of a near-disastrous lack of system
  52. resources (though deliver is reasonably good about this too).
  53.  
  54. Get deliver from comp.sources.reviewed, procmail from comp.sources.misc
  55. (I believe, somebody will correct me).
  56.  
  57. -- 
  58. Bart Schaefer                                     schaefer@zigzag.z-code.com
  59. Z-Code Software Corp.                             schaefer@z-code.com
  60.