Status: New Owner: ---- Labels: Version-3.5.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any
New issue 542 by [email protected]: gb.net.smtp auth plain fails due to addtional "\r\n" http://code.google.com/p/gambas/issues/detail?id=542 1) Describe the problem. I have an application that tries to sends email using gb.net.smtp. Sending the email fails because the host returns: Response code: Authentication credentials invalid (535) Responce parameter: 5.7.8 Error: authentication failed. Sending email to the same server using Thunderbird works and comparing things using a tcpdump log I see that both base64 plain auth strings are the same only gb.net.smtp has some additional characters. Decoding these string I see that they match only gb.net.smtp has at the end additional "\r\n". Looking in the libsmtp_connection.c source I see that indeed "\r\n" is added so I commented out that and recompiled gambas. Tried again and I can successfully send the email. Looked at the Internet to see if there are any specs on adding "\r\n" to the auth string but could not find that. The examples I found, for instance https://tools.ietf.org/html/rfc4954 show no "\r\n": $ perl -MMIME::Base64 -MDevel::Peek -e 'Dump decode_base64("dGVzdAB0ZXN0ADEyMzQ=")' SV = PV(0x1811878) at 0x1813990 REFCNT = 1 FLAGS = (TEMP,POK,pPOK) PV = 0x182e270 "test\0test\0001234"\0 CUR = 14 LEN = 16 The server I am using is smtp.vodafonevast.nl which according to the Service ready message (220) is smtp01.glasoperator.nl ESMTP Postfix 2) Give information about your system. Use the 'System information' menu in the Gambas IDE, and paste the result there. [System] Gambas=3.5.4 OperatingSystem=Linux Kernel=3.4.79-sun7i Architecture=arm Distribution=debian 7.6 Desktop=? Theme=QWindows Language=en_US.UTF-8 Memory=952M [Libraries] Cairo=libcairo.so.2.11200.2 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.2 SDL=libSDL-1.2.so.0.11.4 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
