Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Dec 1995 15:55:25 +0100 (MET)
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        freebsd-hackers@FreeBSD.ORG (FreeBSD Hackers' list)
Subject:   8.7.2: Important fix for mail hubs
Message-ID:  <199512031455.PAA05822@keltia.freenix.fr>

next in thread | raw e-mail | index | archive | help
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: <gshapiro>
250 <gshapiro>... Sender ok
RCPT To: <gshapiro@hhmi.org>
451 <gshapiro@hhmi.org>... 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512031455.PAA05822>