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

XF 1.4 Testing Bounce email settings?

Discussion in 'Troubleshooting and Problems' started by Fred., Jan 17, 2015.

  1. Fred.

    Fred. Well-Known Member

    Is there a way to test the bounce email settings?

    If I login with my browser it works perfect.
    But it looks like Xenforo can't login to the account.

    I always get these.
    Code:
    Server Error Log
    Error Info
    Zend_Mail_Storage_Exception: cannot login, user or password wrong - library/Zend/Mail/Storage/Imap.php:279
    Generated By: Unknown Account, Sunday at 1:53 PM
    Stack Trace
    #0 /home/admin/domains/example.com/private_html/library/XenForo/Model/EmailBounce.php(292): Zend_Mail_Storage_Imap->__construct(Array)
    #1 /home/admin/domains/example.com/private_html/library/XenForo/Deferred/EmailBounce.php(19): XenForo_Model_EmailBounce->openBounceHandlerConnection()
    #2 /home/admin/domains/example.com/private_html/library/XenForo/Model/Deferred.php(256): XenForo_Deferred_EmailBounce->execute(Array, Array, 7.99999809265, '')
    #3 /home/admin/domains/example.com/private_html/library/XenForo/Model/Deferred.php(390): XenForo_Model_Deferred->runDeferred(Array, 7.99999809265, '', false)
    #4 /home/admin/domains/example.com/private_html/library/XenForo/Model/Deferred.php(335): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
    #5 /home/admin/domains/example.com/private_html/deferred.php(23): XenForo_Model_Deferred->run(false)
    #6 {main}
    Request State
    array(3) {
      ["url"] => string(39) "https://www.example.com/deferred.php"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(3) {
        ["_xfRequestUri"] => string(31) "/forums/test.25/"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    I use google apps
    These are my settings.

    Enable automated bounced email handler --> on
    Connection Type: IMAP
    Host : imap.gmail.com : 993
    Username and password is correct
    and Encryption: SSL
     
  2. Mike

    Mike XenForo Developer Staff Member

    It could also be that IMAP hasn't been enabled for that Gmail account (don't think it's on by default).

    You can test by running the bounce handler cron, viewing a couple pages and then checking the server error log. If you send an email directly to the bounce account (don't read it), then it should show up on in the log on a successful check (or a server error log entry otherwise).
     
  3. Fred.

    Fred. Well-Known Member

    IMAP is enabled for that account.

    I tested by running the bounce handler cron, viewing a couple pages and then checking the server error log. Nothing shows up in the server log.
    Sending an email to the bounce account seems to work perfect. It shows up in the log. :confused:

    So that means Xenforo can login and read the email.
    Maybe is was just a time-out or something that caused the errors.
    I'll see how it goes the next days / weeks. I don't have that many bounces.
     
  4. Mike

    Mike XenForo Developer Staff Member

    If it only happened once, it sounds like a temporary error. If your forum is active, the bounce account is checked every 30 minutes so you would see a constant error if it's more fundamental.
     
  5. Fred.

    Fred. Well-Known Member

    Ok thanks Mike :)
    I've seen it before. But it looks like it was a temporary error.
     
  6. Adrian D.

    Adrian D. Member

    Hello

    I'm also getting this error, however seems it's not temporar. All details are correct, IMAP is enabled inside gmail.

    It's a fresh xenforo install by the way.

    Code:
    Error Info
    Zend_Mail_Storage_Exception: cannot login, user or password wrong - library/Zend/Mail/Storage/Imap.php:279
    Generated By: Unknown Account, A moment ago
    Stack Trace
    #0 /var/www/example.com/library/XenForo/Model/EmailBounce.php(292): Zend_Mail_Storage_Imap->__construct(Array)
    #1 /var/www/example.com/library/XenForo/Deferred/EmailBounce.php(19): XenForo_Model_EmailBounce->openBounceHandlerConnection()
    #2 /var/www/example.com/library/XenForo/Model/Deferred.php(294): XenForo_Deferred_EmailBounce->execute(Array, Array, 7.9999959468842, '')
    #3 /var/www/example.com/library/XenForo/Model/Deferred.php(428): XenForo_Model_Deferred->runDeferred(Array, 7.9999959468842, '', false)
    #4 /var/www/example.com/library/XenForo/Model/Deferred.php(373): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
    #5 /var/www/example.com/deferred.php(23): XenForo_Model_Deferred->run(false)
    #6 {main}
    Request State
    array(3) {
      ["url"] => string(44) "http://example.com/deferred.php"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(4) {
        ["_xfRequestUri"] => string(1) "/"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfToken"] => string(8) "********"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    
     
  7. Fred.

    Fred. Well-Known Member

    @Adrian D.

    Try port 993
    Encryption: SSL

    And make sure your firewall isn't blocking the port.
     
  8. Adrian D.

    Adrian D. Member

    The details are correct as I have specified.

    Also no firewall.
     
  9. Tracy Perry

    Tracy Perry Well-Known Member

    Are you by chance using 2FA on Gmail?
     
  10. Adrian D.

    Adrian D. Member

    No, I haven't enabled the 2FA. I only use a @domain.com gmail address but I don't think that's an issue.
     
  11. Adrian D.

    Adrian D. Member

Share This Page