Symfony swiftmailer:spool:send的每第16次调用都以STMP超时结束

Symfony swiftmailer:spool:send的每第16次调用都以STMP超时结束,symfony,smtp,timeout,swiftmailer,spool,Symfony,Smtp,Timeout,Swiftmailer,Spool,我在Symfony2.2项目中使用文件spool。我每分钟用克朗冲洗一次线轴 每16分钟发生一次错误,准确度为几秒钟:例如14:38:31、14:54:31、15:14:31、15:30:31。等等 [12-Aug-2013 16:02:31 Europe/Berlin] PHP Fatal error: Uncaught exception 'Swift_IoException' with message 'Connection to mail.mydomain.pl:25 Timed Ou

我在Symfony2.2项目中使用文件spool。我每分钟用克朗冲洗一次线轴

每16分钟发生一次错误,准确度为几秒钟:例如14:38:31、14:54:31、15:14:31、15:30:31。等等

[12-Aug-2013 16:02:31 Europe/Berlin] PHP Fatal error:  Uncaught exception 'Swift_IoException' with message 'Connection to mail.mydomain.pl:25 Timed Out' in /home/projectname/test.projectname.pl/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:169
下面是堆栈跟踪:

Stack trace:
#0 /home/projectname/test.projectname.pl/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(400): Swift_Transport_StreamBuffer->readLine(NULL)
#1 /home/projectname/test.projectname.pl/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(277): Swift_Transport_AbstractSmtpTransport->_getFullResponse(NULL)
#2 /home/projectname/test.projectname.pl/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(245): Swift_Transport_AbstractSmtpTransport->executeCommand('QUIT??', Array, Array)
#3 /home/projectname/test.projectname.pl/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(217): Swift_Transport_EsmtpTransport->executeCommand('QUIT??', Array)
#4 /home/projectname/test.projectname.pl/vendor/swiftmailer/swiftmailer/lib/classes/ in /home/projectname/test.projectname.pl/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 169
我没有主意了,不知道下一步可以查什么

可能对服务器有连接限制,但不知道如何签出。除此之外-swiftmailer:spool:send不应该在执行后关闭连接吗

这是来自cron的命令:

/home/projectname/test.projectname.pl/app/console swiftmailer:spool:send

更新:这是由于smtp服务器提供商造成的。

哪台服务器?尝试将cron减少到每秒钟一次服务器地址为mail.e-surf.pl:25。我可以将通话频率降低到每2分钟一次,但仅用于诊断目的。我不认为我能说服我的经理减少邮件递送的频率。我会让你知道结果的。你应该联系你的邮件提供商。也许你的手机只能在一段时间内进行有限的连接。