home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / mail / sendmail / 2995 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!flop.ENGR.ORST.EDU!gaia.ucs.orst.edu!skyking!stanley
  2. From: stanley@skyking.OCE.ORST.EDU (John Stanley)
  3. Newsgroups: comp.mail.sendmail
  4. Subject: Sendmail queueing with old recipient information
  5. Message-ID: <1gjl83INN9qc@gaia.ucs.orst.edu>
  6. Date: 15 Dec 92 04:00:03 GMT
  7. Article-I.D.: gaia.1gjl83INN9qc
  8. Organization: Oregon State University, College of Oceanography
  9. Lines: 27
  10. NNTP-Posting-Host: skyking.oce.orst.edu
  11.  
  12.  
  13. Situation: A private mail program to handle incoming mail, written in
  14. perl. Most of what is does is put incoming mail into /var/spool/mail/stanley.
  15. It also forwards based on content and time -- non-mailing-list mail goes
  16. home when I should be there (like now).
  17.  
  18. Recently, /var/spool/mail has been filling up. So, perl program now
  19. checks to see if the mail gets appended to the mailbox. If not, it
  20. returns ETEMPFAIL (75).
  21.  
  22. Well, it appears that this error causes sendmail to queue up and attempt
  23. delivery later. That isn't the problem.
  24.  
  25. The problem is that the sendmail queue contains the path name to the
  26. program in the R field of the qf file. When it gets around to the next
  27. delivery attempt, it 1) doesn't bother to look up aliases or .forward
  28. files or etc. for the intended recipient (minor) and 2) forgets that it
  29. is supposed to setuid before running that program. The latter error
  30. means that my perl script is being run as daemon, and it has no access
  31. to write to any of my files. As such, it returns ETEMPFAIL when the mail
  32. cannot be appended to the mailbox.
  33.  
  34. Questions: Is there a better error return that will inform other mailers
  35. to try again?  Is there a way to tell sendmail to keep track of the
  36. recipient and do the setuid call it should be doing?
  37.  
  38. The queue is local to the system, SunOS 4.0.3 on a Sun 3, perl 4pl19.
  39.