Bug 3487

Summary: by not waiting for 220 sendmail butchers SMTP standard
Product: Busybox Reporter: Jasen <jasen>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Jasen 2011-03-16 02:58:47 UTC
http://tools.ietf.org/html/rfc2821#section-3.2

BB doesn't wait for the server to send 220

some servers delay the 220 to trap badly written clients (typically spammers)
they block BB too :(

sendmail,c near the comment "wait for initial server OK"

the comments sugggest that changes to the TLS code are needed before this can be fixed :(
Comment 1 Denys Vlasenko 2011-09-18 01:04:23 UTC
Fixed in git:

commit 34c469ae0495bb010969eb920c63d31ed4a0e793
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Sun Sep 18 03:01:49 2011 +0200

    sendmail: don't talk until 220 code is seen. Closes 3487



Will go into 1.20.x

Unfortunately, the fix affects only the mode without -H 'comm helper', since we don't know whether comm helper is a program which does STARTTLS and therefore eats code 220...