🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #71059

[XNews] M3 Bug: SMTP error / Non-RFC 821 compliant

#71059
From: John Wunderlich
Date: Wed, 24 Jan 2001 23:57
47 lines
3049 bytes
XNews bug: Version M3

I have found that Xnews has a non-compliance to RFC 821 (SMTP) that is 
causing the Email feature of Xnews not to work with some SMTP Servers.  
Specifically, Xnews does not appear to recognize multi-line replies from 
SMTP servers.  The following is a quote from RFC 821 Appendix E:

> The reply text may be longer than a single line; in these cases
> the complete text must be marked so the sender-SMTP knows when it
> can stop reading the reply.  This requires a special format to
> indicate a multiple line reply.
> The format for multiline replies requires that every line,
> except the last, begin with the reply code, followed
> immediately by a hyphen, "-" (also known as minus), followed by
> text.  The last line will begin with the reply code, followed
> immediately by <SP>, optionally some text, and <CRLF>.
> For example:
>     123-First line
>     123-Second line
>     123-234 text beginning with numbers
>     123 The last line

With Xnews I am seeing is an initial dialog with a SMTP server that looks 
like the following and results in an Xnews Error:
R: 220-InterScan Version 3.5-Build_SOL_1044 $Date: 04/20/200 ...
S: HELO Z123456
R: 220 this.is.me.com ESMTP Sendmail 8.9.3/8.9.3; Wed 24 Jan 2001...
S: MAIL FROM:<xnewsuser@location.com>
R: 250 this.is.me.com Hello localhost[127.0.0.1] pleased to meet you...
S: RCPT TO:<dest@location.com>
R: 250 <xnewsuser@location.com>... Sender ok..
S: DATA
R: 250 <dest@location.com>... Recipient ok..

At which point, Xnews responds with an ERROR window that reads:
   250 <dest@location.com>... Recipient ok..

Apparently XNews got out of sync with the SMTP server because it didn't 
wait for the first multi-line type "220" message to complete causing an 
error downstream.  By looking at network dialogs from other SMTP clients 
that work just fine with this particular SMTP server, the "HELO" command 
isn't sent until after the second "220" message from the server.

Is there hope for getting this fixed in Xnews?

- John Wunderlich
Technical Details
Message-ID: <Xns9033A268D8931wunderpsdrscraytheon@138.126.254.210>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!isdnet!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <Xns9033A268D8931wunderpsdrscraytheon@138.126.254.210>
Subject: [XNews] M3 Bug: SMTP error / Non-RFC 821 compliant
Date: Wed, 24 Jan 2001 23:57:55 GMT
From: jwunderlich@mailcity.com (John Wunderlich)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!isdnet!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: Xnews/M3
Lines: 46
NNTP-Posting-Host: 147.16.160.44
X-Complaints-To: news@ext.ray.com
X-Trace: dfw-service2.ext.raytheon.com 980380675 147.16.160.44 (Wed, 24 Jan 2001 17:57:55 CST)
NNTP-Posting-Date: Wed, 24 Jan 2001 17:57:55 CST
Organization: Raytheon Company