10.9 Mail not correctly encoding/sending SMTP SSL login (maybe with @) to Zoho

Originator:chaos42
Number:rdar://14161127 Date Originated:14-Jun-2013 03:22 PM
Status:Duplicate/14039513 Resolved:
Product:Mac OS X Product Version:10.9 (DP1, DP2)
Classification:Serious Bug Reproducible:Always
 
14-Jun-2013 03:22 PM Daniel DeCovnick:
Summary: I have a Zoho Mail account, which has an SMTP server at smtp.zoho.com. My username is "daniel@decovnick.com". I can't log into this server in Mail.app. I may have originally input the wrong username or password, but even with the right one it's not working. I can only conclude something's gone wrong with encoding/sending the encoded credentials, or Mail is caching the wrong credentials, as I can log into via 'openssl s_client -crlf -connect smtp.zoho.com:465' using AUTH PLAIN with my base64 encoded credentials. 

Steps to Reproduce:
1. Register domain name.
2. Create Zoho mail free account, associate it with the domain name.
3. create additional account with Zoho for the domain. 
4. Add account in Mail (already had an iCloud account there).
5. Enter wrong credentials. 
6. Fail to connect as seen in connection doctor.
7. Enter right credentials and save. 
8. Open connection doctor and click check again. 


Expected Results:
220 mx.zohomail.com SMTP Server ready June 14, 2013 2:48:25 PM PDT
ehlo testing
250-mx.zohomail.com Hello testing (204.79.190.74 (204.79.190.74))
250-SIZE 25000000
250 AUTH LOGIN PLAIN
AUTH PLAIN <redacted>
235 Authentication Successful

In Mail: Connection and login to server successful.

Actual Results:
INITIATING CONNECTION Jun 14 14:34:45.976 [kCFStreamSocketSecurityLevelNone] -- host:smtp.zoho.com -- port:465 -- socket:0x6200008dabe0 -- thread:0x600001468680

CONNECTED Jun 14 14:34:46.044 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.zoho.com -- port:465 -- socket:0x6200008dabe0 -- thread:0x6000002733c0

READ Jun 14 14:34:46.123 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.zoho.com -- port:465 -- socket:0x6200008dabe0 -- thread:0x6000002733c0
220 mx.zohomail.com SMTP Server ready June 14, 2013 2:34:46 PM PDT

WROTE Jun 14 14:34:46.133 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.zoho.com -- port:465 -- socket:0x6200008dabe0 -- thread:0x6000002733c0
EHLO event-10-1-71-98.venue.apple.com

READ Jun 14 14:34:46.153 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.zoho.com -- port:465 -- socket:0x6200008dabe0 -- thread:0x6000002733c0
250-mx.zohomail.com Hello event-10-1-71-98.venue.apple.com (204.79.190.74 (204.79.190.74))

READ Jun 14 14:34:46.183 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.zoho.com -- port:465 -- socket:0x6200008dabe0 -- thread:0x600000a7b300
250-SIZE 25000000
250 AUTH LOGIN PLAIN

WROTE Jun 14 14:34:46.184 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.zoho.com -- port:465 -- socket:0x6200008dabe0 -- thread:0x600000a7b300
AUTH PLAIN  (*** 72 bytes hidden ***)

READ Jun 14 14:34:46.276 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.zoho.com -- port:465 -- socket:0x6200008dabe0 -- thread:0x6000002733c0
535 Authentication Failed

WROTE Jun 14 14:34:46.276 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.zoho.com -- port:465 -- socket:0x6200008dabe0 -- thread:0x6000002733c0
QUIT

"Trying to log into this SMTP account failed. Verify that the username and password are correct."


Regression: If it's a matter of incorrectly encoding the @ in the username, this is a regression from 10.6, possibly later.  

Notes: My credentials are only 44 bytes base64-encoded, not 72, which makes me thing this is very likely an encoding bug. Additionally, I can log into the IMAP server with the same credentials just fine. Deleting the SMTP server from the list and re-adding it did not fix the problem. 

14-Jun-2013 03:37 PM Daniel DeCovnick:
Logging in to the SMTP server works in Thuderbird. This is definitely a Mail bug. 

18-Jun-2013 12:19 PM Daniel DeCovnick:
This does not happen if the account was created in Mountain Lion and upgraded to Mavericks.

27-Jun-2013 01:54 PM Daniel DeCovnick:
As of Mavericks DP2 the problem occurs in my accounts created on Mountain Lion as well. So at least it's consistently broken.

As of 6/27/13 - duplicate of 14039513

As of 7/23/13 - fixed in Mavericks DP4, original bug not yet closed

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!