From owner-freebsd-hackers Sun Dec 3 06:56:46 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA29437 for hackers-outgoing; Sun, 3 Dec 1995 06:56:46 -0800 Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id GAA29432 for ; Sun, 3 Dec 1995 06:56:43 -0800 Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.12/jtpda-5.0) with ESMTP id PAA04768 for ; Sun, 3 Dec 1995 15:56:35 +0100 Received: from (uucp@localhost) by blaise.ibp.fr (8.6.12/jtpda-5.0) with UUCP id PAA27613 for freebsd-hackers@FreeBSD.ORG; Sun, 3 Dec 1995 15:56:34 +0100 Received: (from roberto@localhost) by keltia.freenix.fr (8.7.2/keltia-uucp-2.7) id PAA05822 for freebsd-hackers@FreeBSD.ORG; Sun, 3 Dec 1995 15:55:26 +0100 (MET) From: Ollivier Robert Message-Id: <199512031455.PAA05822@keltia.freenix.fr> Subject: 8.7.2: Important fix for mail hubs To: freebsd-hackers@FreeBSD.ORG (FreeBSD Hackers' list) Date: Sun, 3 Dec 1995 15:55:25 +0100 (MET) X-Operating-System: FreeBSD 2.2-CURRENT ctm#1393 X-Mailer: ELM [version 2.4 PL24 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG Precedence: bulk Peter, have you seen this ? ------- start of forwarded message ------- From: gshapiro@scooter.WPI.EDU (Gregory Neil Shapiro) Newsgroups: comp.mail.sendmail Subject: 8.7.2: Important fix for mail hubs Date: 29 Nov 1995 16:17:09 -0500 Organization: Worcester Polytechnic Institute, Worcester, MA 01609-2280 There is a problem with 8.7.2 which causes the daemon to give two replies to a RCPT if the RCPT triggers a name server timeout. This is dangerous in that the client connection acts on the first response and then uses the second response on the next mail assuming the connection is for more than one mail message (i.e. a queue run). Here is an example: 220 garden.WPI.EDU ESMTP Sendmail 8.7.2/8.7.1; Wed, 29 Nov 1995 15:43:24 -0500 MAIL From: 250 ... Sender ok RCPT To: 451 ... hhmi.org: Name server timeout 250 Recipient ok (will queue) quit 221 garden.WPI.EDU closing connection The problem is in putoutmsg() in err.c. Below is a patch: *** err.c~orig Wed Nov 29 16:02:02 1995 --- err.c Wed Nov 29 16:02:45 1995 *************** *** 385,391 **** fprintf(CurEnv->e_xfp, "%s\n", msg); if (msgcode == '8') ! msg[0] == '0'; /* output to channel if appropriate */ if (!Verbose && msg[0] == '0') --- 385,391 ---- fprintf(CurEnv->e_xfp, "%s\n", msg); if (msgcode == '8') ! msg[0] = '0'; /* output to channel if appropriate */ if (!Verbose && msg[0] == '0') ------- end of forwarded message ------- -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.frmug.fr.net FreeBSD keltia.freenix.fr 2.2-CURRENT #7: Mon Nov 6 21:08:06 MET 1995