Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Smtp SocketReadTimeoutException Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
rsantellan
Newbie
Newbie


Joined: 14 October 2015
Online Status: Offline
Posts: 11
Posted: 23 October 2015 at 4:11am | IP Logged Quote rsantellan

Hi,

I'm having the problem that sometimes I can't send the emails. Doing some debugging I found this trace in the log.

[00:01:32.35][59a8de75] IMAP[NOTE]: Start connection to "tcp://localhost:143"^M
[00:01:32.35][59a8de75] IMAP[DATA]: < * OK Dovecot ready.\r\n^M
[00:01:32.35][59a8de75] IMAP[DATA]: > TAG1 CAPABILITY\r\n^M
[00:01:32.35][59a8de75] IMAP[DATA]: < * CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS STARTTLS AUTH=PLAIN\r\n^M
[00:01:32.36][59a8de75] IMAP[DATA]: < TAG1 OK Capability completed.\r\n^M
[00:01:32.36][59a8de75] IMAP[SECURE]: > TAG2 LOGIN "usuario" "********"\r\n^M
[00:01:32.36][59a8de75] IMAP[DATA]: < TAG2 OK Logged in.\r\n^M
[00:01:32.37][59a8de75] SMTP[NOTE]: Start connection to "tcp://localhost:25"^M
[00:01:32.37][59a8de75] SMTP[DATA]: < 220 mail.website.com ESMTP Postfix\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: > EHLO www.website.com\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: < 250-mail.website.com\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: < 250-PIPELINING\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: < 250-SIZE 10240000\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: < 250-VRFY\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: < 250-ETRN\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: < 250-ENHANCEDSTATUSCODES\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: < 250-8BITMIME\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: < 250 DSN\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: > MAIL FROM:<usuario@website.com> SIZE=3599\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: < 250 2.1.0 Ok\r\n^M
[00:01:32.37][59a8de75] SMTP[DATA]: > RCPT TO:<cdeangelillo@calipsouruguay.com>\r\n^M
[00:01:52.37][59a8de75] SMTP[ERROR]: exception 'MailSo\Net\Exceptions\SocketReadTimeoutException' with message 'MailSo-Net-Exceptions-SocketReadTimeoutException (NetClient.php ~ 489)' in /var/www//web/webmail/libraries/MailSo/Net/NetClient.php:489
Stack trace:
#0 /var/www//web/webmail/libraries/MailSo/Smtp/SmtpClient.php(710): MailSo\Net\NetClient->getNextBuffer()
#1 /var/www//web/webmail/libraries/MailSo/Smtp/SmtpClient.php(599): MailSo\Smtp\SmtpClient->validateResponse(Array)
#2 /var/www//web/webmail/libraries/MailSo/Smtp/SmtpClient.php(348): MailSo\Smtp\SmtpClient->sendRequestWithCheck('RCPT', Array, 'TO:<sendto...')
#3 /var/www//web/webmail/libraries/afterlogic/common/managers/mail/manager.php(1170): MailSo\Smtp\SmtpClient->Rcpt('sendtoo@ca...')
#4 /var/www//web/webmail/libraries/ProjectCore/Actions.php(1600): CApiMailManager->sendMessage(Object(CAccount), Object(MailSo\Mime\Message), NULL, 'INBOX.Sent', '', '')
#5 [internal function]: ProjectCore\Actions->AjaxMessageSend()
#6 /var/www//web/webmail/libraries/ProjectCore/Service.php(290): call_user_func(Array)
#7 /var/www//web/webmail/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#8 /var/www//web/webmail/index.php(104): include('/var/www/virtua...')
#9 {main}^M
[00:01:52.37][59a8de75] SMTP[NOTE]: Disconnected from "tcp://localhost:25" (success)^M
[00:01:52.37][59a8de75] exception 'MailSo\Net\Exceptions\SocketReadTimeoutException' with message 'MailSo-Net-Exceptions-SocketReadTimeoutException (NetClient.php ~ 489)' in /var/www//web/webmail/libraries/MailSo/Net/NetClient.php:489
Stack trace:
#0 /var/www//web/webmail/libraries/MailSo/Smtp/SmtpClient.php(710): MailSo\Net\NetClient->getNextBuffer()
#1 /var/www//web/webmail/libraries/MailSo/Smtp/SmtpClient.php(599): MailSo\Smtp\SmtpClient->validateResponse(Array)
#2 /var/www//web/webmail/libraries/MailSo/Smtp/SmtpClient.php(348): MailSo\Smtp\SmtpClient->sendRequestWithCheck('RCPT', Array, 'TO:<sendto...')
#3 /var/www//web/webmail/libraries/afterlogic/common/managers/mail/manager.php(1170): MailSo\Smtp\SmtpClient->Rcpt('sendtoo@ca...')
#4 /var/www//web/webmail/libraries/ProjectCore/Actions.php(1600): CApiMailManager->sendMessage(Object(CAccount), Object(MailSo\Mime\Message), NULL, 'INBOX.Sent', '', '')
#5 [internal function]: ProjectCore\Actions->AjaxMessageSend()
#6 /var/www//web/webmail/libraries/ProjectCore/Service.php(290): call_user_func(Array)
#7 /var/www//web/webmail/libraries/ProjectCore/Boot.php(12): ProjectCore\Service->Handle()
#8 /var/www//web/webmail/index.php(104): include('/var/www/virtua...')
#9 {main}^M

How can I get more information about this to tell the hosting?

The SmtpClient is trying to use mail.website.com or localhost? I couldn't found out in the logs.

Regards.
Back to Top View rsantellan's Profile Search for other posts by rsantellan
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 23 October 2015 at 4:16am | IP Logged Quote Igor

According to the logs, the connection is performed to localhost, the connection itself is successful, up until sending RCPT TO command to server:

Code:
[00:01:32.37][59a8de75] SMTP[DATA]: > RCPT TO:<cdeangelillo@calipsouruguay.com>\r\n^M
[00:01:52.37][59a8de75] SMTP[ERROR]: exception 'MailSo\Net\Exceptions\SocketReadTimeoutException' with message 'MailSo-Net-Exceptions-SocketReadTimeoutException


As you can see from timestamps, WebMail didn't get any response back from server within 20 seconds and has aborted the connection. It seems that the problem is on mail server side. One of the possible reasons is that mailserver tries to check the recipient address and that check hangs for some reason.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
rsantellan
Newbie
Newbie


Joined: 14 October 2015
Online Status: Offline
Posts: 11
Posted: 23 October 2015 at 5:34am | IP Logged Quote rsantellan

Igor,

Thanks a lot.

Regards.
Back to Top View rsantellan's Profile Search for other posts by rsantellan
 
rsantellan
Newbie
Newbie


Joined: 14 October 2015
Online Status: Offline
Posts: 11
Posted: 23 October 2015 at 9:50am | IP Logged Quote rsantellan

Igor,

It is possible to increment the timeout bigger than 20 seconds

Regards.
Back to Top View rsantellan's Profile Search for other posts by rsantellan
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 26 October 2015 at 4:05am | IP Logged Quote Igor

Yes, that can be done by adding the following items to array defined in data/settings/config.php file:

Code:
'socket.connect-timeout' => 20,
'socket.get-timeout' => 20,


with the values you need to be supplied there.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide