1. 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

Discussion in 'Troubleshooting and Problems' started by coolc11, Jul 3, 2014.

  1. coolc11

    coolc11 Member

    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:
    #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}

    Attached Files:

  2. Tracy Perry

    Tracy Perry Well-Known Member

    I've noticed (sometimes) in my mail.log for Postfix that connections to Gmail times out and it requires a resend.
  3. coolc11

    coolc11 Member

    I don't have Postfix installed on my webserver, I'm assuming that it's done through XenForo?
  4. Tracy Perry

    Tracy Perry Well-Known Member

    Nope. Postfix is an MTA that is installed at the OS level.
  5. coolc11

    coolc11 Member

    So you're saying that I need to have Postfix installed on my webserver for XenForo SMTP emails to work?
  6. Tracy Perry

    Tracy Perry Well-Known Member

    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: Jul 8, 2014
  7. ENF

    ENF Well-Known Member

    I'll double check, but I'm fairly certain we're using TLS for GA mail usage.

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

Share This Page