[Top] [All Lists]

Re: Multi-line Greetings - where to put official greeting line (Top or Bottom?)

2004-01-22 16:50:04

On Tue, 2004-01-20 at 16:59, Hector Santos wrote:
We got a question from a customer saying DNSREPORT.COM
(  is reporting a warning abort a host name
mismatch in the greeting.  DNSREPORT.COM is a popular SMTP compliancy
testing site.

I just tested it ( "Mail Test") against a qmail-smtpd
replacement I'm working on. The "test" consists of the following
protocol exchange:

220 ESMTP ready
<<<< HELO
<<<< MAIL 
250 2.1.0 sender 
<<<< RCPT TO:<bob(_at_)h(_dot_)db(_dot_)org>
250 2.1.5 recipient <bob(_at_)h(_dot_)db(_dot_)org> ok
<<<< QUIT
221 2.0.0 goodbye

I did however discover one thing. I was sending the initial greeting
via 2 write sys-calls. Think of it like this:

write(fd, "220 ESMTP ready", 24);
write(fd, "\r\n", 2);

This confused the "Mail Test" to the point where it claimed not to
have received a valid response. Now I'm no expert, but I can't remember
having read anything that mandates that the whole response be sent in
one TCP packet. With the exception of spam sending malware it doesn't
seem to be a problem for anyone else sending me mail.

Can someone confirm that it is acceptable to send SMTP responses divided
over several TCP packets?


BTW: As i mentioned, spam zombies seems to have the same problem, so
maybe this could be the next anti-spam trick (for about a week or so,
before the spammers catch up).

-=[ B. Johannessen | bob(_at_)db(_dot_)org -=- | +4797152009 ]=-
-=[ Mail & Spam - News, Drafts & Standards - ]=-
-=[ On the Origin Of Spam: Spam Statistics - ]=-