[issue42498] smtplib is glitchy after receive server code 500

2021-01-05 Thread izomiac
izomiac added the comment: I agree, it's my suspicion that the server's error message and python's outbound command are sent so close to each other that buffering ensures they disagree about the exact sequence of commands/responses. As for my server, it was HAProxy doing the injection and I

[issue42498] smtplib is glitchy after receive server code 500

2021-01-05 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: The "problem" is that smtplib.SMTP does the following, in essence: 1. Open connection to server 2. Send EHLO 3. Read server response The PROXY injection causes a response from the server, but the response gets "cached" in the incoming TCP buffer. The injecti

[issue42498] smtplib is glitchy after receive server code 500

2020-11-28 Thread izomiac
New submission from izomiac : I use a custom e-mail server and noticed I wasn't getting e-mails from FreeNAS. I tracked the bug down to Python's smtplib. My home internet can't do outbound port 25, so I use a port forwarding script that I've since learned injects "PROXY TCP4\r\n". Thi