AUTH LOGIN not RFC compliant
Hi
AUTH LOGIN <base64-encoded-username> does not work:
Connected to postal.example.com.
Escape character is '^]'.
220 postal.example.com ESMTP Postal/EXUM3K
EHLO example.com
250-My capabilities are
250 AUTH CRAM-MD5 PLAIN LOGIN
AUTH LOGIN SomeBase64<CR>
<CR>
502 Invalid/unsupported command
QUIT
221 Closing Connection
Connection closed by foreign host.
If no carriage return (<CR>) is given after AUTH LOGIN the connection stalls and the client/server times the connection out. Seems like this method needs adjustments: https://github.com/atech/postal/blob/master/lib/postal/smtp_server/client.rb#L172
Using AUTH LOGIN, then username, then password works:
Connected to postal.example.com.
Escape character is '^]'.
220 postal.example.com ESMTP Postal/R1GFEN
EHLO example.com
250-My capabilities are
250 AUTH CRAM-MD5 PLAIN LOGIN
AUTH LOGIN
334 VXNlcm5hbWU6
RXhhbXBsZVVzZXJuYW1l
334 UGFzc3dvcmQ6
RXhhbXBsZVBhc3N3b3Jk
235 Granted for example/test
QUIT
221 Closing Connection
Connection closed by foreign host.
Thank you for the detailed report. We will look to get this fixed.
Same issue!
Most of the .NET application are not working with Postal as they send:
AUTH LOGIN <base64-encoded-username>
which does not work.
Fixed in f1bee5644b87261a0d876ec9a663447338c75afd
Awesome! 👍 Tested with few .NET scripts and working with these changes!
Awesome, thanks for testing!