RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.1k stars 883 forks source link

MailSo-Net-Exceptions-SocketReadTimeoutException (NetClient.php ~ 506) #1304

Open kdaye opened 7 years ago

kdaye commented 7 years ago

RainLoop version, browser, OS: RainLoop 1.10.5.192 Firefox 50.0 Win10/Linux

Mail server Ubuntu 16.04 docker-mailserver with let's encrypt it works well,with thunderbird and my phone IOS

Steps to reproduce the problem: adding a domain with admin panel click test error

MailSo\Net\Exceptions\SocketReadTimeoutException: MailSo-Net-Exceptions-SocketReadTimeoutException (NetClient.php ~ 506)

Logs or screenshots:

[17:59:45.435][30943bcc] POST[DATA]: {"Name":"example.com","IncHost":"mail.example.com","IncPort":"993","IncSecure":"2","UseSieve":"0","SieveHost":"","SievePort":"4190","SieveSecure":"0","OutHost":"mail.example.com","OutPort":"587","OutSecure":"2","OutAuth":"1","OutUsePhpMail":"0","Action":"AdminDomainTest","XToken":"60d59d4ca52b04605f0539c13afbb69a"}
[17:59:45.438][30943bcc] IMAP[NOTE]: Start connection to "tcp://mail.example.com:993"
[17:59:45.440][30943bcc] IMAP[NOTE]: Connected (success)
[17:59:55.448][30943bcc] IMAP[ERROR]: MailSo\Net\Exceptions\SocketReadTimeoutException: MailSo-Net-Exceptions-SocketReadTimeoutException (NetClient.php ~ 506) in /var/www/html/rainloop/rainloop/v/1.10.5.192/app/libraries/MailSo/Net/NetClient.php:506
Stack trace:
#0 /var/www/html/rainloop/rainloop/v/1.10.5.192/app/libraries/MailSo/Imap/ImapClient.php(2033): MailSo\Net\NetClient->getNextBuffer()
#1 /var/www/html/rainloop/rainloop/v/1.10.5.192/app/libraries/MailSo/Imap/ImapClient.php(1899): MailSo\Imap\ImapClient->partialParseResponseBranch(Object(MailSo\Imap\Response))
#2 /var/www/html/rainloop/rainloop/v/1.10.5.192/app/libraries/MailSo/Imap/ImapClient.php(1951): MailSo\Imap\ImapClient->parseResponse('*', true)
#3 /var/www/html/rainloop/rainloop/v/1.10.5.192/app/libraries/MailSo/Imap/ImapClient.php(155): MailSo\Imap\ImapClient->parseResponseWithValidation('*', true)
#4 /var/www/html/rainloop/rainloop/v/1.10.5.192/app/libraries/RainLoop/Actions.php(4140): MailSo\Imap\ImapClient->Connect('mail.example....', 993, 2, false, true)
#5 /var/www/html/rainloop/rainloop/v/1.10.5.192/app/libraries/RainLoop/ServiceActions.php(172): RainLoop\Actions->DoAdminDomainTest()
#6 /var/www/html/rainloop/rainloop/v/1.10.5.192/app/libraries/RainLoop/Service.php(146): RainLoop\ServiceActions->ServiceAjax('')
#7 /var/www/html/rainloop/rainloop/v/1.10.5.192/app/libraries/RainLoop/Service.php(56): RainLoop\Service->localHandle()
#8 /var/www/html/rainloop/rainloop/v/1.10.5.192/app/libraries/RainLoop/Service.php(79): RainLoop\Service->__construct()
#9 /var/www/html/rainloop/rainloop/v/1.10.5.192/app/handle.php(94): RainLoop\Service::Handle()
#10 /var/www/html/rainloop/rainloop/v/1.10.5.192/include.php(225): include('/var/www/html/r...')
#11 /var/www/html/rainloop/index.php(13): include('/var/www/html/r...')
#12 {main}
[17:59:55.448][30943bcc] SMTP[NOTE]: Start connection to "tcp://mail.example.com:587"
[17:59:55.449][30943bcc] SMTP[NOTE]: Connected (success)
[17:59:55.463][30943bcc] SMTP[DATA]: < 220 mail.example.com ESMTP Postfix (Ubuntu)\r\n
[17:59:55.464][30943bcc] SMTP[DATA]: > EHLO mail.example.com\r\n
[17:59:55.464][30943bcc] SMTP[DATA]: < 250-mail.example.com\r\n
[17:59:55.464][30943bcc] SMTP[DATA]: < 250-PIPELINING\r\n
[17:59:55.464][30943bcc] SMTP[DATA]: < 250-SIZE 10240000\r\n
[17:59:55.464][30943bcc] SMTP[DATA]: < 250-VRFY\r\n
[17:59:55.464][30943bcc] SMTP[DATA]: < 250-ETRN\r\n
[17:59:55.464][30943bcc] SMTP[DATA]: < 250-STARTTLS\r\n
[17:59:55.464][30943bcc] SMTP[DATA]: < 250-ENHANCEDSTATUSCODES\r\n
[17:59:55.464][30943bcc] SMTP[DATA]: < 250-8BITMIME\r\n
[17:59:55.464][30943bcc] SMTP[DATA]: < 250 DSN\r\n
[17:59:55.465][30943bcc] SMTP[DATA]: > STARTTLS\r\n
[17:59:55.465][30943bcc] SMTP[DATA]: < 220 2.0.0 Ready to start TLS\r\n
[17:59:55.470][30943bcc] SMTP[DATA]: > EHLO mail.example.com\r\n
[17:59:55.470][30943bcc] SMTP[DATA]: < 250-mail.example.com\r\n
[17:59:55.470][30943bcc] SMTP[DATA]: < 250-PIPELINING\r\n
[17:59:55.471][30943bcc] SMTP[DATA]: < 250-SIZE 10240000\r\n
[17:59:55.471][30943bcc] SMTP[DATA]: < 250-VRFY\r\n
[17:59:55.471][30943bcc] SMTP[DATA]: < 250-ETRN\r\n
[17:59:55.471][30943bcc] SMTP[DATA]: < 250-AUTH PLAIN LOGIN\r\n
[17:59:55.471][30943bcc] SMTP[DATA]: < 250-AUTH=PLAIN LOGIN\r\n
[17:59:55.471][30943bcc] SMTP[DATA]: < 250-ENHANCEDSTATUSCODES\r\n
[17:59:55.471][30943bcc] SMTP[DATA]: < 250-8BITMIME\r\n
[17:59:55.471][30943bcc] SMTP[DATA]: < 250 DSN\r\n
[17:59:55.471][30943bcc] SMTP[NOTE]: Disconnected from "tcp://mail.example.com:587" (success)
[17:59:55.471][30943bcc] IMAP[NOTE]: Disconnected from "tcp://mail.example.com:993" (success)
[17:59:55.471][30943bcc] AJAX[DATA]: {"Action":"AdminDomainTest","Result":{"Imap":"MailSo-Net-Exceptions-SocketReadTimeoutException (NetClient.php ~ 506)","Smtp":true,"Sieve":true},"Time":10052}
[17:59:55.472][30943bcc] INFO[MEMORY]: Memory peak usage: 2MB
[17:59:55.472][30943bcc] INFO[TIME]: Time delta: 10.050761938095

HELP OR ANY SUGGESTIONS!!!

butlerx commented 7 years ago

having same issue

RainLoop commented 7 years ago

It looks like your server is blocking the connection to the remote mail server. A timeout occurs after 10 seconds. Check the firewall configuration or something like that.

Motorloid01 commented 6 years ago

MailSo-Net-Exceptions-SocketReadException (NetClient.php ~ 515)

I was using hmailserver and for some reason it banned the server host 127.0.0.1 I deleted the ban and works fine

e-stonia commented 5 years ago

I have the issue only for Sieve. Email works.

arghyadeep-k commented 3 years ago

@kdaye Is ENABLE_MANAGESIEVE flag = 1 in the environment variables file?

azriel49 commented 3 years ago

Same problem here, with SIEVE enabled. Any idea?