使用 Zend_Mail 和 Exim 每个 SMTP 连接发送多封邮件时出现问题
我的专用服务器上有 exim 邮件服务器。 我正在尝试使用 zend_mail 一次发送大约 800 封邮件 但只有大约200人发送 我在 error_log 中没有 php 错误 我尝试记录它是否太慢并超过最大执行时间
2010-10-12 15:16:32 - Going to send 795 letters
2010-10-12 15:16:37 - 100 letters done
2010-10-12 15:16:41 - 200 letters done
然后什么也没有。我找不到如何捕获 Zend_Mail 引发的错误。所以我查看了 exim_mainlog 并发现此时附近有一些错误这
1P5cDN-0000fo-27 no immediate delivery: more than 10 messages received in one connection
H=localhost [127.0.0.1] Warning: Sender rate 479.5 / 1h
是否意味着我应该每 10 个字母中断连接或者我必须更改 exim 的一些配置? 主要问题是 - 我无法进行很多测试,因为我的订阅者收到了测试邮件,如果我测试了几封邮件,它就可以正常工作
I have exim mailserver on my dedication server.
I'm trying to send about 800 mails at once with zend_mail
But only about 200 of them sending
I have no php errors in error_log
I tried to log if it too slow and exceed max time execution
2010-10-12 15:16:32 - Going to send 795 letters
2010-10-12 15:16:37 - 100 letters done
2010-10-12 15:16:41 - 200 letters done
And then nothing. I can't find how to catch the error throwed by Zend_Mail. So i looked in exim_mainlog and found there some errors near this time
1P5cDN-0000fo-27 no immediate delivery: more than 10 messages received in one connection
H=localhost [127.0.0.1] Warning: Sender rate 479.5 / 1h
Does it mean i should interrupt connection every 10 letters or I have to change some cofig for exim?
The main problem is - i can't test a lot, because my subscriber got tests mails and if i test with a few mails it works fine
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是 Zend_Mail 的问题,而是 Exim 配置的问题。通过 SMTP 接收邮件时,Exim 启动的默认传递进程数为 10。这由配置选项 smtp_accept_queue_per_connection 控制
http://wiki.exim.org/FAQ/General_Debugging/Q0049
http://www.exim.org/exim-html-current/doc/html/spec_html/ch14.html
This is not an issue with Zend_Mail, but with the Exim configuration. The default number of delivery processes that Exim starts when receiving messages via SMTP is 10. This is controlled by the configuration option smtp_accept_queue_per_connection
http://wiki.exim.org/FAQ/General_Debugging/Q0049
http://www.exim.org/exim-html-current/doc/html/spec_html/ch14.html