XF 1.5 Xenforo won't send emails using php

Claudiu

Member
For 2 days xenforo won't send confirmation emails to users to announce that they have a private message. The error looks likes this:

Error Info
Zend_Mail_Transport_Exception: Email to contact@spinningshop.ro failed: Unable to send mail. - library/Zend/Mail/Transport/Sendmail.php:137
Generated By: Unknown Account, 4 minutes ago
Stack Trace
#0 /home/spinni63/public_html/spinningclub.ro/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail()
#1 /home/spinni63/public_html/spinningclub.ro/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#2 /home/spinni63/public_html/spinningclub.ro/library/XenForo/Model/MailQueue.php(79): Zend_Mail->send(Object(Zend_Mail_Transport_Sendmail))
#3 /home/spinni63/public_html/spinningclub.ro/library/XenForo/Deferred/MailQueue.php(10): XenForo_Model_MailQueue->runMailQueue(7.9999980926514)
#4 /home/spinni63/public_html/spinningclub.ro/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_MailQueue->execute(Array, Array, 7.9999980926514, '')
#5 /home/spinni63/public_html/spinningclub.ro/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999980926514, '', false)
#6 /home/spinni63/public_html/spinningclub.ro/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#7 /home/spinni63/public_html/spinningclub.ro/deferred.php(23): XenForo_Model_Deferred->run(false)
#8 {main}
Request State
array(3) {
["url"] => string(36) "https://spinningclub.ro/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(35) "/conversations/siteground-test.928/"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}


Now i have contacted the hosting company they said that there is no problem on their end. I tried also with the smtp of the hosting setting and did not work, the hosting company checked also and they said the following:

Currently the email could not be send because of the following error:

Code:
2017-01-16 22:37:59 [25274] H=(localhost) [37.60.232.185]:57854 I=[37.60.232.185]:465 X=TLSv1.2:ECDHE-RSA-AES128-SHA:128 CV=no SNI="securees3.sgcpanel.com" F=<rexonel@gmail.com> A=dovecot_login:no-reply@spinningclub.ro rejected RCPT <rexonel@gmail.com>: SITEGROUND: AUTHENTICATED Sorry 37.60.232.185. The "MAIL FROM" email address rexonel@gmail.com / gmail.com you are using is not hosted on this server. Tried to use rexonel@gmail.com / gmail.com as mail from address. Sending mails from addresses not hosted on our server is not allowed. Please check the "MAIL FROM" settings of your mail client and make sure you set the "MAIL FROM" address to an email account which is hosted on the server.

It seems that the application is not working correctly, because it is trying to change the "MAIL FROM" header with another email account, that is not hosted on the server. So, I would advise you to contact the developers of the application for further investigation and troubleshooting of the issue. Alternatively, you could contact a professional developer who will be able to revise the source code of the application and to correct that issue.

It seems that there was no such issue before, because the php mail(); function could simulates the sending from another email, than the actual one, even if more of the email services are rejecting such messages.


What should i do? I am not a tech guy and have not made any changes to my forum, it simply started to not working. Please, any help would be greatly appreciated.
 
The error is described here:
2017-01-16 22:37:59 [25274] H=(localhost) [37.60.232.185]:57854 I=[37.60.232.185]:465 X=TLSv1.2:ECDHE-RSA-AES128-SHA:128 CV=no SNI="securees3.sgcpanel.com" F=<rexonel@gmail.com> A=dovecot_login:no-reply@spinningclub.ro rejected RCPT <rexonel@gmail.com>: SITEGROUND: AUTHENTICATED Sorry 37.60.232.185. The "MAIL FROM" email address rexonel@gmail.com/ gmail.com you are using is not hosted on this server. Tried to use rexonel@gmail.com / gmail.com as mail from address. Sending mails from addresses not hosted on our server is not allowed. Please check the "MAIL FROM" settings of your mail client and make sure you set the "MAIL FROM" address to an email account which is hosted on the server.

You have XF configured to send mail from the listed Gmail address, but they won't let you do that because it's not hosted on their server. You will need to change the value of the "default email address" and/or the "bounced email address" options to addresses that they host.
 
Now i assume it was sent, i sent it between 2 accounts and none of them received any email, why is that?

2017-01-17 18:43:34 [22818] 1cTXnC-0005w2-Mr H=(es3.siteground.eu) [127.0.0.1]:46108 I=[127.0.0.1]:25 Warning: SITEGROUND: no-reply@spinningclub.ro : This message was sent via script. The details are as follows: SCRIPT_FILENAME=/home/spinni63/public_html/spinningclub.ro/deferred.php REQUEST_URI=/deferred.php PWD=/home/spinni63/public_html/spinningclub.ro REMOTE_ADDR=5.14.73.160 .
2017-01-17 18:43:34 [22827] 1cTXnC-0005wB-PD H=(es3.siteground.eu) [127.0.0.1]:46130 I=[127.0.0.1]:25 Warning: SITEGROUND: no-reply@spinningclub.ro : This message was sent via script. The details are as follows: SCRIPT_FILENAME=/home/spinni63/public_html/spinningclub.ro/deferred.php REQUEST_URI=/deferred.php PWD=/home/spinni63/public_html/spinningclub.ro REMOTE_ADDR=5.14.73.160 .
2017-01-17 18:43:34 [22837] 1cTXnC-0005wL-Rq H=(es3.siteground.eu) [127.0.0.1]:46148 I=[127.0.0.1]:25 Warning: SITEGROUND: no-reply@spinningclub.ro : This message was sent via script. The details are as follows: SCRIPT_FILENAME=/home/spinni63/public_html/spinningclub.ro/deferred.php REQUEST_URI=/deferred.php PWD=/home/spinni63/public_html/spinningclub.ro REMOTE_ADDR=5.14.73.160 .
2017-01-17 19:07:30 [26116] 1cTYAM-0006nE-9E H=(es3.siteground.eu) [127.0.0.1]:45080 I=[127.0.0.1]:25 Warning: SITEGROUND: no-reply@spinningclub.ro : This message was sent via script. The details are as follows: SCRIPT_FILENAME=/home/spinni63/public_html/spinningclub.ro/deferred.php REQUEST_URI=/deferred.php PWD=/home/spinni63/public_html/spinningclub.ro REMOTE_ADDR=80.30.122.226 .
2017-01-17 19:07:30 [26133] 1cTYAM-0006nV-Bx H=(es3.siteground.eu) [127.0.0.1]:45110 I=[127.0.0.1]:25 Warning: SITEGROUND: no-reply@spinningclub.ro : This message was sent via script. The details are as follows: SCRIPT_FILENAME=/home/spinni63/public_html/spinningclub.ro/deferred.php REQUEST_URI=/deferred.php PWD=/home/spinni63/public_html/spinningclub.ro REMOTE_ADDR=80.30.122.226 .
2017-01-17 19:17:06 [10501] 1cTYJe-0002jN-Df H=(es3.siteground.eu) [127.0.0.1]:51932 I=[127.0.0.1]:25 Warning: SITEGROUND: no-reply@spinningclub.ro : This message was sent via script. The details are as follows: SCRIPT_FILENAME=/home/spinni63/public_html/spinningclub.ro/deferred.php REQUEST_URI=/deferred.php PWD=/home/spinni63/public_html/spinningclub.ro REMOTE_ADDR=213.233.84.101 .
2017-01-17 19:37:39 [12359] 1cTYdX-0003DL-Sk H=(es3.siteground.eu) [127.0.0.1]:48142 I=[127.0.0.1]:25 Warning: SITEGROUND: no-reply@spinningclub.ro : This message was sent via script. The details are as follows: SCRIPT_FILENAME=/home/spinni63/public_html/spinningclub.ro/deferred.php REQUEST_URI=/deferred.php PWD=/home/spinni63/public_html/spinningclub.ro REMOTE_ADDR=109.166.137.58 .
2017-01-17 19:46:31 [17608] 1cTYm7-0004a0-2C H=(es3.siteground.eu) [127.0.0.1]:43902 I=[127.0.0.1]:25 Warning: SITEGROUND: no-reply@spinningclub.ro : This message was sent via script. The details are as follows: SCRIPT_FILENAME=/home/spinni63/public_html/spinningclub.ro/deferred.php REQUEST_URI=/deferred.php PWD=/home/spinni63/public_html/spinningclub.ro REMOTE_ADDR=109.166.137.58 .
 
If there aren't any errors logged in XF's control panel, then the mail was handed off to the SMTP server. There are some elements in those logs that imply that. Further delivery logs would be found within the SMTP server's logs.
 
Top Bottom