Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!agate!usenet.ins.cwru.edu!odin!chet From: chet@odin.INS.CWRU.Edu (Chet Ramey) Newsgroups: comp.mail.sendmail Subject: Re: New sendmail error... Message-ID: <1991May20.205133.19701@usenet.ins.cwru.edu> Date: 20 May 91 20:51:33 GMT Article-I.D.: usenet.1991May20.205133.19701 References: <1991May15.012841.2008@oar.net> Sender: news@usenet.ins.cwru.edu Reply-To: chet@po.CWRU.Edu Organization: Yoyodyne Propulsion Systems, Inc. Lines: 38 Nntp-Posting-Host: odin.ins.cwru.edu In article <1991May15.012841.2008@oar.net> karl.kleinpaste@osc.edu writes: >YP sucks. No argument here. >The problem is that sendmail is asking for the numeric port identifier >associated with the "smtp" service. This comes from /etc/services in >normal BSD UNIX systems, and from the YP services map in mutant SunOS >systems. Your YP server is overloaded and didn't respond in time, and >sendmail doesn't retry the request. > >Nothing to be done but > [a] de-overload your YP server. > [b] hardcode "25" where it asks for "smtp" in daemon.c. > [c] nuke YP as a whole with the biggest weapon you can find. While I personally favor [c], we've had good success with replacing all calls to `getservbyname' in the sendmail source with the following: #ifdef CWRU for (t = 0; t < 5; t++) { sp = getservbyname("smtp", "tcp"); if (sp) break; sleep(2); } #else sp = getservbyname("smtp", "tcp"); #endif /* CWRU */ Chet -- Chet Ramey Internet: chet@po.CWRU.Edu Case Western Reserve University NeXT Mail: chet@macbeth.INS.CWRU.Edu ``Now, somehow we've brought our sins back physically -- and they're pissed.''