afterlogic / webmail-lite

AfterLogic WebMail Lite PHP. Fast and easy-to-use webmail front-end for your existing IMAP mail server, Plesk or cPanel.
https://afterlogic.org/webmail-lite
GNU Affero General Public License v3.0
443 stars 120 forks source link

302 When try to send an email #69

Closed iamchathu closed 6 years ago

iamchathu commented 7 years ago

I just installed and configured webmail lite using script installer in CPanel.

I can login to my email and IMAP works perfectly I receive emails without any error. But when I try to send an email it gives me 302 Authentication error.Log file is as following.


[04:49:07.06][548cf891] [POST(19)][ip:172.68.201.23] /?/Ajax/
[04:49:07.06][548cf891] POST > [AccountID, FetcherID, IdentityID, DraftUid, To, Cc, Bcc, Subject, Text, IsHtml, Importance, Sensitivity, ReadingConfirmation, InReplyTo, References, Action, ShowReport, SentFolder, Token]
[04:49:07.06][548cf891]
[04:49:07.06][548cf891] Previous Exception: 535 Incorrect authentication data
[04:49:07.07][548cf891] exception 'CApiManagerException' with message 'Unknown error' in /home/imchathu/public_html/nwmlgens/libraries/afterlogic/common/managers/mail/manager.php:1194
Stack trace:
#0 /home/imchathu/public_html/nwmlgens/libraries/ProjectCore/Actions.php(1644): CApiMailManager->sendMessage(Object(CAccount), Object(MailSo\Mime\Message), NULL, 'INBOX.Sent', '', '')
#1 [internal function]: ProjectCore\Actions->AjaxMessageSend()
#2 /home/imchathu/public_html/nwmlgens/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#3 /home/imchathu/public_html/nwmlgens/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#4 /home/imchathu/public_html/nwmlgens/index.php(104): include('/home/imchathu/...')
#5 {main}

Next exception 'ProjectCore\Exceptions\ClientException' with message '535 Incorrect authentication data' in /home/imchathu/public_html/nwmlgens/libraries/ProjectCore/Actions.php:1665
Stack trace:
#0 [internal function]: ProjectCore\Actions->AjaxMessageSend()
#1 /home/imchathu/public_html/nwmlgens/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#2 /home/imchathu/public_html/nwmlgens/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#3 /home/imchathu/public_html/nwmlgens/index.php(104): include('/home/imchathu/...')
#4 {main}

The SMTP credentials also same as IMAP and same settings work well with Outlook app and mobile apps.

afterlogic-support commented 7 years ago

These logs do not hold the context, make sure to set log verbosity to Debug and recreate the logs.

Also, is my understanding correct that you used the regular ZIP package and not the cPanel installer?

iamchathu commented 7 years ago

I installed it using CPanel script installer (Softaculous). IMAP is working and same credentials is for the SMTP.

[08:40:47.85][78481eca] IMAP[NOTE]: Start connection to "ssl://a2ssXXX.a2hosting.com:993"
[08:40:48.04][78481eca] IMAP[DATA]: < * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE NAMESPACE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.\r\n
[08:40:48.04][78481eca] IMAP[SECURE]: > TAG1 LOGIN "XXXX@genius.lk" "********"\r\n
[08:40:48.15][78481eca] IMAP[DATA]: < TAG1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE NAMESPACE NOTIFY COMPRESS=DEFLATE QUOTA] Logged in\r\n
[08:40:48.16][78481eca] SMTP[NOTE]: Start connection to "ssl://a2ssXXX.a2hosting.com:465"
[08:40:48.21][78481eca] SMTP[DATA]: < 220-dallasXXX.arvixeshared.com ESMTP Exim 4.89 #1 Fri, 27 Oct 2017 04:40:48 -0400 \r\n
[08:40:48.21][78481eca] SMTP[DATA]: < 220-We do not authorize the use of this system to transport unsolicited, \r\n
[08:40:48.21][78481eca] SMTP[DATA]: < 220 and/or bulk e-mail.\r\n
[08:40:48.21][78481eca] SMTP[DATA]: > EHLO email.genius.lk\r\n
[08:40:48.21][78481eca] SMTP[DATA]: < 250-dallasXXX.arvixeshared.com Hello email.genius.lk [23.91.70.3]\r\n
[08:40:48.21][78481eca] SMTP[DATA]: < 250-SIZE 52428800\r\n
[08:40:48.21][78481eca] SMTP[DATA]: < 250-8BITMIME\r\n
[08:40:48.21][78481eca] SMTP[DATA]: < 250-PIPELINING\r\n
[08:40:48.21][78481eca] SMTP[DATA]: < 250-AUTH PLAIN LOGIN\r\n
[08:40:48.21][78481eca] SMTP[DATA]: < 250 HELP\r\n
[08:40:48.21][78481eca] SMTP[DATA]: > AUTH LOGIN\r\n
[08:40:48.21][78481eca] SMTP[DATA]: < 334 VXNlcm5hbWU6\r\n
[08:40:48.21][78481eca] SMTP[DATA]: > Y2hhdGh1cmFuZFAZ2VuaXVzc29mdC5saw==\r\n
[08:40:48.21][78481eca] SMTP[DATA]: < 334 UGFzc3vcmQ6\r\n
[08:40:48.21][78481eca] SMTP[SECURE]: > ********\r\n
[08:40:50.38][78481eca] SMTP[DATA]: < 535 Incorrect authentication data\r\n
[08:40:50.38][78481eca] SMTP[ERROR]: exception 'MailSo\Smtp\Exceptions\NegativeResponseException' with message '535 Incorrect authentication data' in /home/imc/public_html/nwmlg/libraries/MailSo/Smtp/SmtpClient.php:727
Stack trace:
#0 /home/imc/public_html/nwmlg/libraries/MailSo/Smtp/SmtpClient.php(599): MailSo\Smtp\SmtpClient->validateResponse(235)
#1 /home/imc/public_html/nwmlg/libraries/MailSo/Smtp/SmtpClient.php(203): MailSo\Smtp\SmtpClient->sendRequestWithCheck('RWxha2lyaTMTV...', 235, '', true)
#2 /home/imchathu/public_html/nwmlgens/libraries/afterlogic/common/managers/mail/manager.php(1170): MailSo\Smtp\SmtpClient->Login('XXXXXX@gen...', '********')
#3 /home/imc/public_html/nwmlg/libraries/ProjectCore/Actions.php(1644): CApiMailManager->sendMessage(Object(CAccount), Object(MailSo\Mime\Message), NULL, 'INBOX.Sent', '', '')
#4 [internal function]: ProjectCore\Actions->AjaxMessageSend()
#5 /home/imc/public_html/nwmlg/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#6 /home/imc/public_html/nwmlg/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#7 /home/imc/public_html/nwmlg/index.php(104): include('/home/imc/...')
#8 {main}
[08:40:50.38][78481eca] SMTP[NOTICE]: exception 'MailSo\Smtp\Exceptions\NegativeResponseException' with message '535 Incorrect authentication data' in /home/imc/public_html/nwmlg/libraries/MailSo/Smtp/SmtpClient.php:727
Stack trace:
#0 /home/imc/public_html/nwmlg/libraries/MailSo/Smtp/SmtpClient.php(599): MailSo\Smtp\SmtpClient->validateResponse(235)
#1 /home/imc/public_html/nwmlg/libraries/MailSo/Smtp/SmtpClient.php(203): MailSo\Smtp\SmtpClient->sendRequestWithCheck('RWxha2lyaTIwMTV...', 235, '', true)
#2 /home/imc/public_html/nwmlg/libraries/afterlogic/common/managers/mail/manager.php(1170): MailSo\Smtp\SmtpClient->Login('XXXXX@gen...', '*****')
#3 /home/imc/public_html/nwmlg/libraries/ProjectCore/Actions.php(1644): CApiMailManager->sendMessage(Object(CAccount), Object(MailSo\Mime\Message), NULL, 'INBOX.Sent', '', '')
#4 [internal function]: ProjectCore\Actions->AjaxMessageSend()
#5 /home/imc/public_html/nwmlg/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#6 /home/imc/public_html/nwmlg/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#7 /home/imchathu/public_html/nwmlgens/index.php(104): include('/home/imchathu/...')
#8 {main}

Next exception 'MailSo\Smtp\Exceptions\LoginBadCredentialsException' with message '535 Incorrect authentication data' in /home/imc/public_html/nwmlg/libraries/MailSo/Smtp/SmtpClient.php:208
Stack trace:
#0 /home/imc/public_html/nwmlg/libraries/afterlogic/common/managers/mail/manager.php(1170): MailSo\Smtp\SmtpClient->Login('XXXXXX@gen...', '*******')
#1 /home/imc/public_html/nwmlg/libraries/ProjectCore/Actions.php(1644): CApiMailManager->sendMessage(Object(CAccount), Object(MailSo\Mime\Message), NULL, 'INBOX.Sent', '', '')
#2 [internal function]: ProjectCore\Actions->AjaxMessageSend()
#3 /home/imc/public_html/nwmlg/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#4 /home/imc/public_html/nwmlg/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#5 /home/imc/public_html/nwmlg/index.php(104): include('/home/imc/...')
#6 {main}
[08:40:50.38][78481eca] Previous Exception: 535 Incorrect authentication data
[08:40:50.38][78481eca] SMTP[DATA]: > QUIT\r\n
[08:40:50.38][78481eca] SMTP[DATA]: < 221 dallasXXX.arvixeshared.com closing connection\r\n
[08:40:50.38][78481eca] SMTP[NOTE]: Disconnected from "ssl://a2ssXXX.a2hosting.com:465" (success)
[08:40:50.39][78481eca] exception 'CApiManagerException' with message 'Unknown error' in /home/imc/public_html/nwmlg/libraries/afterlogic/common/managers/mail/manager.php:1194
Stack trace:
#0 /home/imc/public_html/nwmlg/libraries/ProjectCore/Actions.php(1644): CApiMailManager->sendMessage(Object(CAccount), Object(MailSo\Mime\Message), NULL, 'INBOX.Sent', '', '')
#1 [internal function]: ProjectCore\Actions->AjaxMessageSend()
#2 /home/imc/public_html/nwmlg/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#3 /home/imc/public_html/nwmlg/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#4 /home/imc/public_html/nwmlg/index.php(104): include('/home/imc/...')
#5 {main}

Next exception 'ProjectCore\Exceptions\ClientException' with message '535 Incorrect authentication data' in /home/imch/public_html/nwmlg/libraries/ProjectCore/Actions.php:1665
Stack trace:
#0 [internal function]: ProjectCore\Actions->AjaxMessageSend()
#1 /home/imc/public_html/nwmlg/libraries/ProjectCore/Service.php(341): call_user_func(Array)
#2 /home/imc/public_html/nwmlg/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#3 /home/imc/public_html/nwmlg/index.php(104): include('/home/imc/...')
#4 {main}
[08:40:50.39][78481eca] INFO[MEMORY]: Memory peak usage: 11.25MB
[08:40:50.39][78481eca] INFO[TIME]: Time delta: 2.6234118938446
[08:40:50.39][78481eca] DB : disconnect from imc_nwmlg@localhost
[08:40:50.39][78481eca] IMAP[DATA]: > TAG2 LOGOUT\r\n
[08:40:50.42][78481eca] IMAP[DATA]: < * BYE Logging out\r\n
[08:40:50.42][78481eca] IMAP[DATA]: < TAG2 OK Logout completed (0.001 + 0.000 secs).\r\n
[08:40:50.42][78481eca] IMAP[NOTE]: Disconnected from "ssl://a2ssXX.a2hosting.com:993" (success)
afterlogic-support commented 7 years ago

To assist you with that, we would need a test account on your installation, and admin credentials. If that's possible, please open a ticket via HelpDesk: http://helpdesk.afterlogic.com/