• 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?

Fred.

Well-known member
#1
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
 

Mike

XenForo developer
Staff member
#2
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).
 

Fred.

Well-known member
#3
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.
 

Mike

XenForo developer
Staff member
#4
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.
 
#6
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"
  }
}
 
#12
After moving to the new server. I receive a lot of mistakes
"cannot login, user or password wrong"
Code:
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 /home/www/site.com/library/XenForo/Model/EmailBounce.php(292): Zend_Mail_Storage_Imap->__construct(Array)
#1 /home/www/site.com/library/XenForo/Deferred/EmailBounce.php(19): XenForo_Model_EmailBounce->openBounceHandlerConnection()
#2 /home/www/site.com/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_EmailBounce->execute(Array, Array, 7.9999988079071, '')
#3 /home/www/site.com/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999988079071, '', false)
#4 /home/www/site.com/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#5 /home/www/site.com/deferred.php(23): XenForo_Model_Deferred->run(false)
#6 {main}
Request State
array(3) {
  ["url"] => string(34) "https://site.com/deferred.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(3) {
    ["_xfRequestUri"] => string(46) "/threads/xxx.148842/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
Tell me what to do
For e-mail I use https://xenforo.com/community/resources/bd-mails.2313/
 

Mike

XenForo developer
Staff member
#13
That would indicate your IMAP details are incorrect. We can't really guide you there. You'd need to contact your IMAP server provider for more details.