home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / mail / sendmail / 2072 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.9 KB  |  52 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!casper
  3. From: casper@fwi.uva.nl (Casper H.S. Dik)
  4. Subject: Re: Is it possible to start sendmail from inetd?
  5. Message-ID: <1992Aug13.140631.22560@fwi.uva.nl>
  6. Sender: news@fwi.uva.nl
  7. Nntp-Posting-Host: adam.fwi.uva.nl
  8. Organization: FWI, University of Amsterdam
  9. References: <1992Aug13.120240.20992@spider.research.ptt.nl>
  10. Date: Thu, 13 Aug 1992 14:06:31 GMT
  11. Lines: 39
  12.  
  13. zee@sun006.research.ptt.nl (Siebren van der Zee) writes:
  14.  
  15. >Does anyone run sendmail from inetd? I had hoped a line in /etc/inetd.conf like
  16. >    "smtp stream tcp wait root /usr/lib/sendmail sendmail"
  17. >would do the trick, but sendmail terminated with exit status 73,
  18. >and the sending sendmail complaints: "sendmail[2213]: AA02211:
  19. >SYSERR: net hang reading from <host>: Connection timed out during
  20. >greeting wait with <host>". Is there a good reason why vendors don't
  21. >start sendmail this way in the first place? Is it possible at all?
  22. >(I'm running SunOS 4.1.1 and 4.1.2 with sendmail LD_ patched sendmail)
  23.  
  24. >    Siebren van der Zee.
  25. There are several errors in your inetd.conf line:
  26.  
  27.         - sendmail should be started once for each incoming connection (nowait)
  28.         - sendmail must be started in smtp mode (sendmail -bs)
  29.  
  30. The right line is:
  31.     smtp stream tcp nowait root /usr/lib/sendmail sendmail -bs
  32.  
  33.  
  34. There are several reasons to run sendmail in daemon mode:
  35.  
  36.     - need extra cron job to run queue
  37.     - an idle process doesn't cost much 
  38.     - it is more expensive to start sendmail from scratch each n minutes
  39.       to run the queue than it is to wake up a sleeping daemon
  40.     - it is more expensive to start a new sendmail process for
  41.       an incoming job than it is to fork() the current sendmail
  42.       process.
  43.  
  44.  
  45. All in all, you would be saving 200K swap space but it would cost
  46. you more disk I/O and CPU time.
  47.  
  48. Casper
  49. -- 
  50.                         |    Casper H.S. Dik
  51.                         |    casper@fwi.uva.nl
  52.