[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

Dan Boswell report at bugs.python.org
Mon Mar 12 22:58:36 CET 2012


New submission from Dan Boswell <fruitnuke at gmail.com>:

The current SMTP RFC (5321) states that 'a client MUST issue HELO or EHLO before starting a mail transaction'.  The SMTP server should issue '503 Bad sequence of commands' if a client sends MAIL, RCPT or DATA commands before it sends an HELO/EHLO; currently it does not.

To reproduce:
1. Start smtpd.py
2. Telnet to localhost 8025
3. Send 'MAIL from:<foo at example.com>'
To which you'll see '250 OK' instead of '503 Bad sequence of commands'

----------
components: Library (Lib)
messages: 155490
nosy: fruitnuke
priority: normal
severity: normal
status: open
title: SMTPD server does not enforce client starting mail transaction with HELO or EHLO
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14269>
_______________________________________


More information about the Python-bugs-list mailing list