ietf-smtp
[Top] [All Lists]

Strict RFC x821 Compliant: HELO/EHLO

2005-07-02 12:52:28

From: <Valdis(_dot_)Kletnieks(_at_)vt(_dot_)edu>

Umm.. The *syntax* doesn't become illegal just because
it's spoofed.  The *semantics* may be a bit dicey, but
[ ip.addr.notation ] is perfectly legal syntax on the helo.

True, dicey, you are correct. How about this?

220 zardoc.esmtp.org ESMTP sendmail X.0.0.Alpha4.0
helo 65.10.44.25
250 zardoc.esmtp.org Hi there

This would be an illegal syntax per the ABNF:

      address-literal = "[" IPv4-address-literal /
                            IPv6-address-literal /
                            General-address-literal "]"


Also Claus's machine also disconnected after about 1 minute:

220 zardoc.esmtp.org ESMTP sendmail X.0.0.Alpha4.0
helo 65.10.44.25
250 zardoc.esmtp.org Hi there
Connection to host lost.

From RFC 2821 Section 4.5.3.2 Timeouts

   An SMTP server SHOULD have a timeout of at least
   5 minutes while it is awaiting the next command
   from the sender.

So how far we want to go?  <g>

But you lean with you, better to have said:

    "illegal literal domain"
    "illegal value"
    "illegal parameter"

For  the MAIL command, the parameter was illegal due to an incorrect syntax.

For the HELO command, the parameter was illegal due to an incorrect domain
literal.

etc, etc.

--
Hector Santos, Santronics Software, Inc.
http://www.santronics.com