Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!sun-barr!ccut!wnoc-tyo-news!astemgw!choshi!frf!demizu From: demizu@nff.ncl.omron.co.jp (DEMIZU Noritoshi) Newsgroups: comp.mail.sendmail Subject: Re: New sendmail error... Message-ID: Date: 21 May 91 09:20:24 GMT References: <1991May15.012841.2008@oar.net> <1991May20.205133.19701@usenet.ins.cwru.edu> Sender: news@frf.omron.co.jp Distribution: comp Organization: OMRON Corporation, Kyoto, Japan. Lines: 49 In-reply-to: chet@odin.INS.CWRU.Edu's message of 20 May 91 20:51:33 GMT In article <1991May20.205133.19701@usenet.ins.cwru.edu> chet@odin.INS.CWRU.Edu (Chet Ramey) writes: |In article <1991May15.012841.2008@oar.net> karl.kleinpaste@osc.edu writes: |>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. Here's my patch for it. *** daemon.c.ORG Tue May 21 18:13:23 1991 --- daemon.c Tue May 21 18:14:24 1991 *************** *** 367,374 **** if (sp == NULL) { ! syserr("makeconnection: server \"smtp\" unknown"); ! return (EX_OSFILE); } SendmailAddress.sin_port = sp->s_port; } --- 367,374 ---- if (sp == NULL) { ! syserr("makeconnection: service \"smtp/tcp\" unknown"); ! return EX_OSERR; } SendmailAddress.sin_port = sp->s_port; } |While I personally favor [c], we've had good success with replacing all |calls to `getservbyname' in the sendmail source with the following: I did the samething in getrequests() in daemon.c -- ; DEMIZU, Noritoshi OMRON Computer Systems R&D laboratory ; demizu@nff.ncl.omron.co.jp tel: 075-951-5111 fax: 075-956-7403