🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.uucp
Article #2914

Re: Sendmail-SMTP problem

#2914
From: cball
Date: Mon, 24 Nov 1986 12:55
59 lines
2246 bytes
	We had a similar problem discovered soon after conversion from
bsd4.2 to bsd4.3.  We may well have had the same problem with bsd4.2;
there were some undiagnosed problems with mail delivery when we switched.
	Specifically, it appeared that we were unable to deliver
mail to any DEC10 or DEC20 system.  Examination of the code revealed that
the termination string was ".\n" not "\r\n.\r\n" as is required by
rfc822.  The following changes fixed the problem.  Note that sendmail
is set up to handle multiple mail delivery systems; the end-of-line
string for each mailer is determined when the configuration is read(
the default is "\n").

*** /tmp/,RCSt1008316	Mon Nov 24 07:59:06 1986
--- readcf.c	Fri Oct 31 17:07:36 1986
***************
*** 427,432
  		{
  		  case 'P':		/* pathname */
  			m->m_mailer = newstr(p);
  			break;
  
  		  case 'F':		/* flags */

--- 427,435 -----
  		{
  		  case 'P':		/* pathname */
  			m->m_mailer = newstr(p);
+ 			if (strcmp(p, "[IPC]") == 0) {
+ 				m->m_eol = "\r\n";
+ 			}
  			break;
  
  		  case 'F':		/* flags */
*** /tmp/,RCSt1008316	Mon Nov 24 07:59:13 1986
--- usersmtp.c	Fri Oct 31 18:25:58 1986
***************
*** 300,306
  	(*e->e_putbody)(SmtpOut, m, CurEnv);
  
  	/* terminate the message */
! 	fprintf(SmtpOut, "%s.%s", m->m_eol, m->m_eol);
  	if (Verbose && !HoldErrs)
  		nmessage(Arpa_Info, ">>> .");
  

--- 300,306 -----
  	(*e->e_putbody)(SmtpOut, m, CurEnv);
  
  	/* terminate the message */
! 	fprintf(SmtpOut, ".%s", m->m_eol);
  	if (Verbose && !HoldErrs)
  		nmessage(Arpa_Info, ">>> .");
  


			Charles Ball
			Intermetrics, Inc.

			cball@ddnt.arpa, ihnp4!inmet!cball
Technical Details
Message-ID: <107100002@gabriel>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!pyrnj!mirror!gabriel!cball
References: <1524@uwmcsd1.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!pyrnj!mirror!gabriel!cball
From: cball@gabriel.UUCP
Newsgroups: comp.mail.uucp
Subject: Re: Sendmail-SMTP problem
Message-ID: <107100002@gabriel>
Date: Mon, 24-Nov-86 07:55:00 EST
Article-I.D.: gabriel.107100002
Posted: Mon Nov 24 07:55:00 1986
Date-Received: Tue, 25-Nov-86 20:20:57 EST
References: <1524@uwmcsd1.UUCP>
Lines: 59
Nf-ID: #R:uwmcsd1.UUCP:-152400:gabriel:107100002:000:1642
Nf-From: gabriel.UUCP!cball    Nov 24 07:55:00 1986