mailsac
mailsac copied to clipboard
SMTP 502 5.5.2 Error: command not recognized
Hi, I am seeing an SMTP error when sending mail via telnet to the mailsac installation:
[vagrant@vagrant-centos ~]$ telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 vagrant-centos ESMTP MAILSAC
HELO mailsac.com
250 vagrant-centos at your service, [127.0.0.1]
MAIL FROM: <[email protected]>
250 2.1.0 Ok
RCPT TO: <[email protected]>
250 2.1.0 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
test
.
502 5.5.2 Error: command not recognized
250 2.0.0 Ok: queued as O
quit
221 2.0.0 Goodbye!
Connection closed by foreign host.
Is this still an issue @adamlazz ?
Yes, because mailsac is still using version 0.3.35 of simplesmtp. The error is related to the way simplesmtp handles blank lines. There are missing cases for \n and \r\n. This module is deprecated, so I don't suppose we will see a fix for this any time soon.
:star:-ed, looking forward to see a solution.
Perhaps updating dependency helps?