On 6/10/02 11:56 AM, "Pierre Frisch" <[EMAIL PROTECTED]> wrote:
> I have a problem with one of my user that is trying to send mail from a
> program called WebDev on Windows. His code sends message without problems
> using various SMTP servers but choke on SIMS. The log looks like this:
>
> 08:48:33 4 SMTP(tcp) Connection request from
> [204.50.17.40:1206],seq=9330,3/4
> 08:48:33 4 SMTP-832() Got connection from [204.50.17.40:1206]08:48:33 4
> SMTP(tcp) Connection accepted from [204.50.17.40:1206], seq=9330,3/4
> 08:48:33 4 SMTP-832([204.50.17.40]) Sending 220-Stalker Internet Mail
> ServerV.1.8b8 is ready.\r\n220 ESMTP is spoken here. You are very
> welcome\r\n08:48:33 5 SMTP-832([204.50.17.40]) OT 100 of 100 bytes sent,
> Flags=0
> 08:48:33 5 SMTP-832([204.50.17.40]) *Status=22
> 08:53:34 3 SMTP-832([204.50.17.40]) Time-Out. Read:08:53:34 5
> SMTP-832([204.50.17.40]) *Status=3
> 08:53:34 4 SMTP-832([204.50.17.40]) Aborting
> 08:53:34 5 SMTP-832([204.50.17.40]) *Status=2
> 08:53:34 5 SMTP-832([204.50.17.40]) Disconnect Completed08:53:34 5
> SMTP-832([204.50.17.40]) Stream Disposed
>
> As you can see it looks like the software does not understand the greeting
> message. I suspect that this is because it is two lines. Is there a way to
> hack SIMS to reduce this to one line at least for testing purpose?
I would strongly suggest that you urge your user to fix his program, rather
than try to modify SIMS. His program *is* broken, as it is not compliant
with RFCs 821 or 2821, so may not work with other servers. From RFC 821:
> 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
>
> In many cases the sender-SMTP then simply needs to search for
> the reply code followed by <SP> at the beginning of a line, and
> ignore all preceding lines. In a few cases, there is important
> data for the sender in the reply "text". The sender will know
> these cases from the current context.
Tim
--
Programmers do their work but once, while users are saddled with it ever
thereafter.
-- Jef Raskin, the originator of the Macintosh
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[EMAIL PROTECTED]>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to <[EMAIL PROTECTED]>