phin3has / mailoney

An SMTP Honeypot
249 stars 69 forks source link

Py3 version does not support DATA command #19

Open t3chn0m4g3 opened 2 years ago

t3chn0m4g3 commented 2 years ago

Awesome to see a working Py3 version!

I just tested it and noticed an odd behavior for schizo_open_relay on Py3.9:

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mailrelay.local ESMTP Exim 4.69 #1 Thu, 29 Jul 2010 05:13:48 -0700
helo john
250 mailrelay.local
mail from: john
250 Ok
rcpt to: jane
250 Ok
DATA
" not implementedd "DATA

... and Py3.8:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mailrelay.local ESMTP Exim 4.69 #1 Thu, 29 Jul 2010 05:13:48 -0700
helo
" not implementedd "HELO

In both cases the server does not recognize commands and interprets them incorrectly.

@junquera: Maybe you have an idea?