• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 "Could not open socket" error with Google Apps email

#1
I'm getting the error that I could not open a socket with my Google Apps SMTP service.

I'm using these settings:


This is my stack trace:
Code:
#0 /var/www/html/hydraulix/community/library/Zend/Mail/Protocol/Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('ssl://smtp.goog...')
#1 /var/www/html/hydraulix/community/library/Zend/Mail/Transport/Smtp.php(199): Zend_Mail_Protocol_Smtp->connect()
#2 /var/www/html/hydraulix/community/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#3 /var/www/html/hydraulix/community/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#4 /var/www/html/hydraulix/community/library/XenForo/Mail.php(177): Zend_Mail->send()
#5 /var/www/html/hydraulix/community/library/XenForo/Mail.php(152): XenForo_Mail->sendMail(Object(Zend_Mail))
#6 /var/www/html/hydraulix/community/library/XenForo/Model/UserConfirmation.php(136): XenForo_Mail->send('sijmon2009@live...', 'skullyomama')
#7 /var/www/html/hydraulix/community/library/XenForo/ControllerPublic/AccountConfirmation.php(103): XenForo_Model_UserConfirmation->sendEmailConfirmation(Array)
#8 /var/www/html/hydraulix/community/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_AccountConfirmation->actionResend()
#9 /var/www/html/hydraulix/community/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /var/www/html/hydraulix/community/index.php(13): XenForo_FrontController->run()
#11 {main}
 

Attachments

Tracy Perry

Well-known member
#6
So you're saying that I need to have Postfix installed on my webserver for XenForo SMTP emails to work?
No, what I'm saying is that I have observed timeout connections in my mail.log from Postfix sending to Google. The nice thing is since it's an actual MTA it retries till it sends or errors out or connects - but doesn't lose the message after just one attempt.
 
Last edited:

ENF

Well-known member
#7
I'll double check, but I'm fairly certain we're using TLS for GA mail usage.

Edit:
TLS with port 587, standard config for us. (Your server needs OpenSSL installed as well...)