muquit / mailsend

A program to send mail via SMTP from command line
Other
295 stars 68 forks source link

Gmail login fails if password is 12 or more characters in length. #20

Closed muquit closed 10 years ago

muquit commented 10 years ago

From derauvil...@gmail.com on September 28, 2013 08:45:17

Basically, I tried sending an email using Gmail and found that if my account's password is 12 characters or more, I get an error whereas a password of 11 characters or less succeeds.

Here is the verbose output of the successful attempt: mailsend1.16.exe -to -from -ssl -port 465 -auth-plain -smtp smtp.gmail.com -sub "Backup: 2013- 09-28" -M "Backup for 2013-09-28" +cc +bc -v -user "" -pass "<11 character password>" -attach ".\Archive pieces Dir\b.bmp" Connecting to smtp.gmail.com:465 Cipher: ECDHE-RSA-RC4-SHA Certificate information: Subject: /C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com Issuer: /C=US/O=Google Inc/CN=Google Internet Authority G2 [S] 220 mx.google.com ESMTP mb7sm5550388wic.10 - gsmtp [C] EHLO localhost [S] 250-mx.google.com at your service, [197.245.1.219] [S] 250-SIZE 35882577 [S] 250-8BITMIME [S] 250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN [S] 250-ENHANCEDSTATUSCODES [S] 250 CHUNKING [C] AUTH PLAIN AFhhdmllckpESGRlUmF1dmlsbGVQU0VAZ21haWwuY29tACd2Tzc1XlxNOCw9

[S] 235 2.7.0 Accepted PLAIN Authentication succeeded [C] MAIL FROM: [S] 250 2.1.0 OK mb7sm5550388wic.10 - gsmtp [C] RCPT TO: [S] 250 2.1.5 OK mb7sm5550388wic.10 - gsmtp [C] DATA [S] 354 Go ahead mb7sm5550388wic.10 - gsmtp Subject: Backup: 2013-09-28 From: Date: Sat, 28 Sep 2013 13:51:47 +0200 To: X-Mailer: @(#) mailsend v1.16 (Windows) X-Copyright: GNU GPL. It is illegal to use this software for Spamming Content-type: multipart/mixed; boundary="L+U3M/BYuMHFt7s3" Mime-version: 1.0

--L+U3M/BYuMHFt7s3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline

[C] Backup for 2013-09-28

--L+U3M/BYuMHFt7s3 Content-Type: application/octet-stream; name=b.bmp Content-Disposition: attachment; filename="b.bmp" Content-Transfer-Encoding: base64

--L+U3M/BYuMHFt7s3--

[C] . [S] 250 2.0.0 OK 1380369105 mb7sm5550388wic.10 - gsmtp [C] QUIT [S] 221 2.0.0 closing connection mb7sm5550388wic.10 - gsmtp Mail sent successfully

Here is the verbose output for the failed attempt: mailsend1.16.exe -to -from -ssl -port 465 -auth-plain -smtp smtp.gmail.com -sub "Backup: 2013- 09-28" -M "Backup for 2013-09-28" +cc +bc -v -user "" -pass "<12 character password>" -attach ".\Archive pieces Dir\b.bmp" REM Del ".\Archive pieces Dir\b.bmp" Connecting to smtp.gmail.com:465 Cipher: ECDHE-RSA-RC4-SHA Certificate information: Subject: /C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com Issuer: /C=US/O=Google Inc/CN=Google Internet Authority G2 [S] 220 mx.google.com ESMTP ey4sm5521161wic.11 - gsmtp [C] EHLO localhost [S] 250-mx.google.com at your service, [197.245.1.219] [S] 250-SIZE 35882577 [S] 250-8BITMIME [S] 250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN [S] 250-ENHANCEDSTATUSCODES [S] 250 CHUNKING [C] AUTH PLAIN AFhhdmllckpESGRlUmF1dmlsbGVQU0VAZ21haWwuY29tAGluLkFpTCpCIzYk SA== [S] 535-5.7.8 Username and Password not accepted. Learn more at Error: AUTH PLAIN failed: '535 5.7.8 Username and Password not accepted. Learn m ore at' Could not send mail

Original issue: http://code.google.com/p/mailsend/issues/detail?id=20

muquit commented 10 years ago

From muq...@gmail.com on September 28, 2013 16:05:52

Would you try v1.17b12? Although v1.17 is beta, it has lot of fixes and just because it's beta it is not unstable. I checked in v1.17, an array of 64 characters is used to store the password.

Status: Accepted

muquit commented 10 years ago

From muq...@gmail.com on October 11, 2013 20:12:14

Yes this is a bug. If the base64 string was longer than 60 characters, a new line was added. Will fix soon.

muquit commented 10 years ago

From muq...@gmail.com on October 19, 2013 17:00:05

fixed in v1.17b13

Status: Fixed

muquit commented 10 years ago

From derauvil...@gmail.com on October 19, 2013 22:31:51

Sorry about this late reply. I can confirm that v1.17b13 fixes this problem.