KostyaEsmukov/smtp_to_telegram

554 5.5.0 Error: transaction timeout

savepluto opened this issue · 3 comments

Hi Alex, I get stuck in a 554 error. Tried on two X86 machines, same result. It seems server does not to get any data and runs into time out error. See docker log below. Any advise? Regards, Andres

DEBU[0014] [0.0.0.0:2525] Waiting for a new client. Next Client ID: 2 
INFO[0014] Handle client [172.17.0.1], id: 1            
DEBU[0014] Writing response to client: 
220 kostyaesmukov-smtp_to_telegram1 SMTP Guerrilla(unknown) #1 (1) 2021-01-17T12:53:14Z
DEBU[0014] Client sent: HELO DiskStation2               
DEBU[0014] Writing response to client: 
250 kostyaesmukov-smtp_to_telegram1 Hello
DEBU[0014] Client sent: MAIL FROM:<mymail@example.de>    
DEBU[0014] Writing response to client: 
250 2.1.0 OK
DEBU[0014] Client sent: RCPT TO:<mymail@example.de>      
DEBU[0014] Writing response to client: 
250 2.1.5 OK
DEBU[0014] Client sent: DATA                            
DEBU[0014] Writing response to client: 
354 Enter message, ending with '.' on a line by itself
ERRO[0044] Backend has timed out while saving email     
DEBU[0044] Writing response to client: 
554 5.5.0 Error: transaction timeout
DEBU[0044] Client sent:                                 
WARN[0044] Client closed the connection: 172.17.0.1      error=EOF

Update - I used telnet to contact 172.17.0.1. I ended up with same issue,
It seems SMTP does not recognize "." - anyone has the same problems?

Connected to 172.17.0.2.
Escape character is '^]'.
220 telegram_notifier SMTP Guerrilla(unknown) #15 (1) 2021-01-18T20:53:36Z
HELO NB-AS5
250 telegram_notifier Hello
MAIL FROM: <some@mail.com>
250 2.1.0 OK
RCPT TO: <some@mail.com>
250 2.1.5 OK
DATA
354 Enter message, ending with '.' on a line by itself
Subject: Test
test
.
.
.
554 5.5.0 Error: transaction timeout
554 5.5.1 Unrecognized command

If you believe that SMTP parsing is incorrect then please forward your issue to the library which does this part: https://github.com/flashmob/go-guerrilla/issues

Perhaps your dots end with a newline, which might be unexpected by the library.