mailsac icon indicating copy to clipboard operation
mailsac copied to clipboard

SMTP 502 5.5.2 Error: command not recognized

Open adamlazz opened this issue 10 years ago • 3 comments

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.

adamlazz avatar Jun 18 '15 16:06 adamlazz

Is this still an issue @adamlazz ?

ruffrey avatar Sep 14 '15 14:09 ruffrey

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.

adamlazz avatar Sep 14 '15 19:09 adamlazz

:star:-ed, looking forward to see a solution.

Perhaps updating dependency helps?

lifehome avatar Oct 04 '15 02:10 lifehome