We have moved to a new Sailfish OS Forum. Please start new discussions there.
6

Trouble authentication with Zoho SMTP server

asked 2015-01-25 13:55:34 +0300

avidscavenger gravatar image

updated 2015-03-15 08:48:18 +0300

Hello all,

I see that there have been questions about Zoho before but none of them seem to apply to me. Below is a sample log of an SMTP session with Zoho (for privacy I have replace my real email address with 'censored' but the original log showed by correct email address, and my IP with '<my ip="">'). What is notable is that the Jolla email client does not attempt to authenticate with the SMTP server before sending the email - thus no surprise that the server complains. Any suggestions or work-arounds?</my>

Thanks!

[3042] Jan 25 22:38:44 [Debug] SMTP :  RECV: "220 mx.zohomail.com SMTP Server ready January 25, 2015 3:38:45 AM PST" 
[3042] Jan 25 22:38:44 [Debug] SMTP :  SEND: EHLO [127.0.0.1] 
[3042] Jan 25 22:38:44 [Debug] SMTP :  RECV: "250-mx.zohomail.com Hello [127.0.0.1] (<my ip> (<my ip>))" 
[3042] Jan 25 22:38:45 [Debug] SMTP :  RECV: "250-AUTH LOGIN PLAIN" 
[3042] Jan 25 22:38:45 [Debug] SMTP :  RECV: "250 SIZE 25000000" 
[3042] Jan 25 22:38:45 [Debug] SMTP :  SEND: MAIL FROM: <censored> 
[3042] Jan 25 22:38:45 [Debug] SMTP :  RECV: "-ERR USER NOT AUTHENTICATED" 
[3042] Jan 25 22:38:45 [Debug] SMTP :  Closed connection: "-ERR USER NOT AUTHENTICATED
edit retag flag offensive close delete

Comments

@avidscavenger - Could you post the entire log or send it to mail-logs at jolla dot com ? Did you change the account settings using the command line ? by the lines above seems that no authentication for smtp is selected, check accounts settings, it should be password in this case.

VDVsx ( 2015-01-26 12:55:57 +0300 )edit

@VDVsx Thanks for your reply. Please excuse me, that was my mistake - the log file was generated when no authentication was selected. Below is a full log file with password authentication selected. Looks to me like the mail client is attempting encrypted password authentication, but I promise I have checked this time and the account setting says 'password'.

[5553] Jan 27 13:18:31 [Warning] void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError "QLocalSocket::connectToServer: Invalid name" 
[5553] Jan 27 13:18:31 [Debug] Messaging :  MessageServer ctor begin 
[5553] Jan 27 13:18:31 [Debug] Messaging :  opening database 
[5553] Jan 27 13:18:32 [Debug] ActiveSync :  ActiveSyncServicePlugin::ActiveSyncServicePlugin() 
[5553] Jan 27 13:18:32 [Debug] ActiveSync :  virtual QString ActiveSyncServicePlugin::key() const 
[5553] Jan 27 13:18:32 [Debug] identityimpl.cpp 103 updateState Updating state:  PendingRegistration 
[5553] Jan 27 13:18:32 [Debug] Messaging :  bool SSOSessionManager::createSsoIdentity(const QMailAccountId&, const QString&, int) Creating SSO identity for the service  "imap4"  from account  25  using authentication method  "password" 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 174 initInterface 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 270 process sending to queue 
[5553] Jan 27 13:18:32 [Debug] IMAP :  void ImapClient::setAccount(const QMailAccountId&) SSO identity is found for account id:  25 
[5553] Jan 27 13:18:32 [Debug] Messaging :  Registering service: "imap4" for account: 25 
[5553] Jan 27 13:18:32 [Debug] identityimpl.cpp 103 updateState Updating state:  PendingRegistration 
[5553] Jan 27 13:18:32 [Debug] Messaging :  bool SSOSessionManager::createSsoIdentity(const QMailAccountId&, const QString&, int) Creating SSO identity for the service  "smtp"  from account  25  using authentication method  "password" 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 174 initInterface 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 270 process sending to queue 
[5553] Jan 27 13:18:32 [Debug] SMTP :  void SmtpClient::setAccount(const QMailAccountId&) SSO identity is found for account id:  25 
[5553] Jan 27 13:18:32 [Debug] Messaging :  Registering service: "smtp" for account: 25 
[5553] Jan 27 13:18:32 [Debug] identityimpl.cpp 103 updateState Updating state:  PendingRegistration 
[5553] Jan 27 13:18:32 [Debug] Messaging :  bool SSOSessionManager::createSsoIdentity(const QMailAccountId&, const QString&, int) Creating SSO identity for the service  "imap4"  from account  12  using authentication method  "password" 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 174 initInterface 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 270 process sending to queue 
[5553] Jan 27 13:18:32 [Debug] IMAP :  void ImapClient::setAccount(const QMailAccountId&) SSO identity is found for account id:  12 
[5553] Jan 27 13:18:32 [Debug] Messaging :  Registering service: "imap4" for account: 12 
[5553] Jan 27 13:18:32 [Debug] identityimpl.cpp 103 updateState Updating state:  PendingRegistration 
[5553] Jan 27 13:18:32 [Debug] Messaging :  bool SSOSessionManager::createSsoIdentity(const QMailAccountId&, const QString&, int) Creating SSO identity for the service  "smtp"  from account  12  using authentication method  "password" 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 174 initInterface 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 270 process sending to queue 
[5553] Jan 27 13:18:32 [Debug] SMTP :  void SmtpClient::setAccount(const QMailAccountId&) SSO identity is found for account id:  12 
[5553] Jan 27 13:18:32 [Debug] Messaging :  Registering service: "smtp" for account: 12 
[5553] Jan 27 13:18:32 [Debug] Messaging :  Initiating messageserver plugins. 
[5553] Jan 27 13:18:32 [Debug] Store observer initialized 
[5553] Jan 27 13:18:32 [Debug] No published notification! 
[5553] Jan 27 13:18:32 [Debug] identityimpl.cpp 103 updateState Updating state:  Ready 
[5553] Jan 27 13:18:32 [Debug] dbusoperationqueuehandler.cpp 137 execQueuedOperations Executing cached oparation: SIGNATURE: "process(SessionData,QString)" 
[5553] Jan 27 13:18:32 [Debug] dbusoperationqueuehandler.cpp 149 execQueuedOperations 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 265 process sending to daemon 
[5553] Jan 27 13:18:32 [Debug] identityimpl.cpp 103 updateState Updating state:  Ready 
[5553] Jan 27 13:18:32 [Debug] dbusoperationqueuehandler.cpp 137 execQueuedOperations Executing cached oparation: SIGNATURE: "process(SessionData,QString)" 
[5553] Jan 27 13:18:32 [Debug] dbusoperationqueuehandler.cpp 149 execQueuedOperations 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 265 process sending to daemon 
[5553] Jan 27 13:18:32 [Debug] identityimpl.cpp 103 updateState Updating state:  Ready 
[5553] Jan 27 13:18:32 [Debug] dbusoperationqueuehandler.cpp 137 execQueuedOperations Executing cached oparation: SIGNATURE: "process(SessionData,QString)" 
[5553] Jan 27 13:18:32 [Debug] dbusoperationqueuehandler.cpp 149 execQueuedOperations 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 265 process sending to daemon 
[5553] Jan 27 13:18:32 [Debug] identityimpl.cpp 103 updateState Updating state:  Ready 
[5553] Jan 27 13:18:32 [Debug] dbusoperationqueuehandler.cpp 137 execQueuedOperations Executing cached oparation: SIGNATURE: "process(SessionData,QString)" 
[5553] Jan 27 13:18:32 [Debug] dbusoperationqueuehandler.cpp 149 execQueuedOperations 
[5553] Jan 27 13:18:32 [Debug] authsessionimpl.cpp 265 process sending to daemon 
[5553] Jan 27 13:18:32 [Debug] IMAP :  Got SSO response 
[5553] Jan 27 13:18:32 [Debug] SMTP :  Got SSO response 
[5553] Jan 27 13:18:32 [Debug] IMAP :  Got SSO response 
[5553] Jan 27 13:18:32 [Debug] SMTP :  Got SSO response 
[5553] Jan 27 13:19:04 [Debug] identityimpl.cpp 103 updateState Updating state:  NeedsRegistration 
[5553] Jan 27 13:19:04 [Debug] identityimpl.cpp 103 updateState Updating state:  NeedsRegistration 
[5553] Jan 27 13:19:04 [Debug] identityimpl.cpp 103 updateState Updating state:  NeedsRegistration 
[5553] Jan 27 13:19:04 [Debug] identityimpl.cpp 103 updateState Updating state:  NeedsRegistration 
[5553] Jan 27 13:19:19 [Debug] Messaging :  Running action TransmitMessagesRequest 19099719565313 
[5553] Jan 27 13:19:20 [Debug] SMTP :  newConnection 
[5553] Jan 27 13:19:20 [Debug] SMTP :  Open SMTP connection 
[5553] Jan 27 13:19:20 [Debug] Messaging :  QMailTransport::Socket::Socket SET PROXY host= "" port= 0 
[5553] Jan 27 13:19:20 [Debug] Messaging :  Opening connection -  "smtp.zoho.com" : 465  SSL 
[5553] Jan 27 13:19:20 [Debug] Messaging :  SMTP : connection established 
[5553] Jan 27 13:19:21 [Debug] Messaging :  SMTP : Secure connection established 
[5553] Jan 27 13:19:21 [Debug] SMTP :  Connected 
[5553] Jan 27 13:19:21 [Debug] SMTP :  RECV: "220 mx.zohomail.com SMTP Server ready January 26, 2015 6:19:20 PM PST" 
[5553] Jan 27 13:19:21 [Debug] SMTP :  SEND: EHLO [127.0.0.1] 
[5553] Jan 27 13:19:21 [Debug] SMTP :  RECV: "250-mx.zohomail.com Hello [127.0.0.1] (<my-ip> (<my-ip>))" 
[5553] Jan 27 13:19:21 [Debug] SMTP :  RECV: "250-AUTH LOGIN PLAIN" 
[5553] Jan 27 13:19:21 [Debug] SMTP :  RECV: "250 SIZE 25000000" 
[5553] Jan 27 13:19:21 [Debug] SMTP :  SEND: AUTH PLAIN 
[5553] Jan 27 13:19:22 [Debug] SMTP :  RECV: "535 Authentication Failed" 
[5553] Jan 27 13:19:22 [Debug] Messaging :  void SSOSessionManager::recreateSsoIdentity() Recreating SSO identity using auth method  "password" 
[5553] Jan 27 13:19:22 [Debug] authsessionimpl.cpp 174 initInterface 
[5553] Jan 27 13:19:22 [Debug] authsessionimpl.cpp 270 process sending to queue 
[5553] Jan 27 13:19:23 [Debug] dbusoperationqueuehandler.cpp 137 execQueuedOperations Executing cached oparation: SIGNATURE: "process(SessionData,QString)" 
[5553] Jan 27 13:19:23 [Debug] dbusoperationqueuehandler.cpp 149 execQueuedOperations 
[5553] Jan 27 13:19:23 [Debug] authsessionimpl.cpp 265 process sending to daemon 
[5553] Jan 27 13:19:23 [Debug] SMTP :  Got SSO response 
[5553] Jan 27 13:19:23 [Debug] SMTP :  SEND: AUTH PLAIN 
[5553] Jan 27 13:19:23 [Debug] SMTP :  RECV: "535 Authentication Failed" 
[5553] Jan 27 13:19:23 [Debug] Messaging :  void SSOSessionManager::credentialsNeedUpdate() Setting credentials need update for the service  "smtp"  from account  25  using authentication method  "password" 
[5553] Jan 27 13:19:23 [Debug] SMTP :  Closed connection: "535 Authentication Failed
" 
[5553] Jan 27 13:19:23 [Debug] Messaging :  Action completed 19099719565313 result failure 
[5553] Jan 27 13:19:45 [Debug] Messaging :  Received signal 2 , shutting down. 
[5553] Jan 27 13:19:45 [Warning] Would not determine server/action completing 
[5553] Jan 27 13:19:45 [Warning] Would not determine server/action completing 
[5553] Jan 27 13:19:45 [Warning] Would not determine server/action completing 
[5553] Jan 27 13:19:45 [Warning] Would not determine server/action completing
avidscavenger ( 2015-01-27 05:06:49 +0300 )edit

Darn. I just migrated my email to Zoho and ran into the same problem. Should have checked TJC before doing that I guess... :)

Edit: Got my Zoho account working on my Jolla with Activesync, just had to enable it first in the Zoho control panel. I think this is an all right solution for me.

ssahla ( 2015-03-31 22:26:21 +0300 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2015-03-14 23:11:02 +0300

Alin gravatar image

I have the very same issue with zoho.com. The very same issue with another provider work related... Imap works smtp fails to authenticate... gmail works like a charm...

edit flag offensive delete publish link more

Comments

I've been in touch with technical people at Zoho, who recognise that there is a problem. Whether and when they will fix it is another question.

avidscavenger ( 2015-03-15 22:10:00 +0300 )edit

It still doesn't work. Has anyone gathered any more insight on this issue?

alboe ( 2016-03-01 23:37:32 +0300 )edit

Just to link the questions, as Zoho still does not work properly: Unable to use Zoho Mail on SFOS

fl0rp ( 2017-08-24 01:47:16 +0300 )edit
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2015-01-25 13:55:34 +0300

Seen: 1,357 times

Last updated: Mar 14 '15