Magento 1.7,Qmail 作为 smtp,并行 plesk 10.3,Centos
由于几天我的一个magento安装没有发送电子邮件,这个问题只影响一个magento安装。
异常日志报告:
2013-10-14T15:05:41+00:00 ERR (3):
exception 'Zend_Mail_Transport_Exception' with message 'Unable to send mail. ' in /var/www/vhosts/domain.ext/httpdocs/lib/Zend/Mail/Transport/Sendmail.php:137
Stack trace:
#0 /var/www/vhosts/domain.ext/httpdocs/lib/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail()
#1 /var/www/vhosts/domain.ext/httpdocs/lib/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#2 /var/www/vhosts/domain.ext/httpdocs/app/code/core/Mage/Core/Model/Email/Template.php(454): Zend_Mail->send()
#3 /var/www/vhosts/domain.ext/httpdocs/app/code/core/Mage/Core/Model/Email/Template.php(506): Mage_Core_Model_Email_Template->send(Array, Array, Array)
#4 /var/www/vhosts/domain.ext/httpdocs/app/code/core/Mage/Core/Model/Email/Template/Mailer.php(79): Mage_Core_Model_Email_Template->sendTransactional('sales_email_ord...', 'sales', Array, Array, Array, '5')
#5 /var/www/vhosts/domain.ext/httpdocs/app/code/core/Mage/Sales/Model/Order.php(1393): Mage_Core_Model_Email_Template_Mailer->send()
#6 /var/www/vhosts/domain.ext/httpdocs/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php(276): Mage_Sales_Model_Order->sendOrderUpdateEmail('1', 'test')
#7 /var/www/vhosts//domain.ext/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Adminhtml_Sales_OrderController->addCommentAction()
#8 /var/www/vhosts//domain.ext/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('addComment')
#9 /var/www/vhosts/domain.ext/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /var/www/vhosts/domain.ext/httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#11 /var/www/vhosts/domain.ext/httpdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#12 /var/www/vhosts/domain.ext/httpdocs/index.php(87): Mage::run('', 'store')
#13 {main}
qmail 包装器显示没有问题的电子邮件标题 mail.log 中没有错误
error.log 报告:
qmail-inject: fatal: unable to parse this line:
From: Global-seller: e-commerce <senderemail>
*(senderemail =正确的magento电子邮件)*
服务器上的 smtp 运行良好(所有其他域都在发送电子邮件) 安装在具有不同域的同一服务器上的其他 magento 没有问题。magento 设置在端口 25 上配置为 localhost
服务器上没有安装 postfix
有小费吗?谢谢