Password field issue for Automated bounced email handler

Nirjonadda

Well-known member
Password field issue for Automated bounced email handler and Automated unsubscribe email handler. When type can not add more then 10 character but when copy paste this will add 12 character, when Password are 17 character.
 
So this issue happening Server error log.

Code:
Zend\Mail\Protocol\Exception\RuntimeException: Bounce connection error: cannot read - connection closed? src/vendor/zendframework/zend-mail/src/Protocol/Imap.php:122

Generated by: Unknown account Jun 6, 2019 at 3:53 AM

Stack trace

#0 src/vendor/zendframework/zend-mail/src/Protocol/Imap.php(137): Zend\Mail\Protocol\Imap->nextLine()
#1 src/vendor/zendframework/zend-mail/src/Protocol/Imap.php(99): Zend\Mail\Protocol\Imap->assumedNextLine('* OK')
#2 src/vendor/zendframework/zend-mail/src/Storage/Imap.php(215): Zend\Mail\Protocol\Imap->connect('mail.mysite...', 993, 'tls')
#3 src/XF/EmailBounce/Processor.php(241): Zend\Mail\Storage\Imap->__construct(Object(stdClass))
#4 src/XF/SubContainer/Bounce.php(15): XF\EmailBounce\Processor::getDefaultBounceHandlerStorage(Object(XF\Pub\App))
#5 src/XF/Container.php(28): XF\SubContainer\Bounce->XF\SubContainer\{closure}(Object(XF\Container))
#6 src/XF/SubContainer/Bounce.php(43): XF\Container->offsetGet('storage')
#7 src/XF/Job/EmailBounce.php(20): XF\SubContainer\Bounce->storage()
#8 src/XF/Job/Manager.php(253): XF\Job\EmailBounce->run(G)
#9 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#10 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#11 job.php(42): XF\Job\Manager->runQueue(false, 8)
#12 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(39) ""
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Code:
Zend\Mail\Protocol\Exception\RuntimeException: Unsubscribe connection error: cannot read - connection closed? src/vendor/zendframework/zend-mail/src/Protocol/Imap.php:122

Generated by: Unknown account Jun 6, 2019 at 3:43 AM

Stack trace

#0 src/vendor/zendframework/zend-mail/src/Protocol/Imap.php(137): Zend\Mail\Protocol\Imap->nextLine()
#1 src/vendor/zendframework/zend-mail/src/Protocol/Imap.php(99): Zend\Mail\Protocol\Imap->assumedNextLine('* OK')
#2 src/vendor/zendframework/zend-mail/src/Storage/Imap.php(215): Zend\Mail\Protocol\Imap->connect('mail.mysite...', 993, 'tls')
#3 src/XF/EmailUnsubscribe/Processor.php(142): Zend\Mail\Storage\Imap->__construct(Object(stdClass))
#4 src/XF/SubContainer/Unsubscribe.php(15): XF\EmailUnsubscribe\Processor::getDefaultUnsubscribeHandlerStorage(Object(XF\Pub\App))
#5 src/XF/Container.php(28): XF\SubContainer\Unsubscribe->XF\SubContainer\{closure}(Object(XF\Container))
#6 src/XF/SubContainer/Unsubscribe.php(33): XF\Container->offsetGet('storage')
#7 src/XF/Job/EmailUnsubscribe.php(20): XF\SubContainer\Unsubscribe->storage()
#8 src/XF/Job/Manager.php(253): XF\Job\EmailUnsubscribe->run(G)
#9 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#10 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#11 job.php(42): XF\Job\Manager->runQueue(false, 8)
#12 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(42) ""
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
There are no length restrictions on that field so I'm not certain what you're seeing. It's a small field so it may not appear as though content is going into the field, but it certainly will be.

The connection errors are likely unrelated to the password.
 
@Chris D So when typing password character that does not show how many black dot is here? when typing password character that add 10 black dot then nothing adding. Also Password field is very small, not same to Email transport method Password field.

Email transport method Password field:

203983

Automated bounced email handler and Automated unsubscribe email handler Password field:

203984
 
What does meaning this Server error log?

Code:
Zend\Mime\Exception\RuntimeException: Bounce message processing failed: Not a valid Mime Message: End Missing src/vendor/zendframework/zend-mime/src/Decode.php:54

Generated by: Unknown account Jun 6, 2019 at 4:53 AM

Stack trace

#0 src/vendor/zendframework/zend-mime/src/Decode.php(74): Zend\Mime\Decode::splitMime('--mixed-Cpanel:...', 'mixed-Cpanel::E...')
#1 src/vendor/zendframework/zend-mail/src/Storage/Part.php(193): Zend\Mime\Decode::splitMessageStruct('--mixed-Cpanel:...', 'mixed-Cpanel::E...')
#2 src/vendor/zendframework/zend-mail/src/Storage/Part.php(255): Zend\Mail\Storage\Part->cacheContent()
#3 src/XF/EmailBounce/Parser.php(173): Zend\Mail\Storage\Part->countParts()
#4 src/XF/EmailBounce/Processor.php(69): XF\EmailBounce\Parser->parseMessage(Object(Zend\Mail\Storage\Message))
#5 src/XF/EmailBounce/Processor.php(53): XF\EmailBounce\Processor->processMessage('Return-Path: <c...')
#6 src/XF/Job/EmailBounce.php(27): XF\EmailBounce\Processor->processFromStorage(Object(Zend\Mail\Storage\Imap), G)
#7 src/XF/Job/Manager.php(253): XF\Job\EmailBounce->run(G)
#8 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#9 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#10 job.php(42): XF\Job\Manager->runQueue(false, 8)
#11 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(134) ""
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
It means that the message isn't formatted according to the spec so it cannot be processed.

Interestingly there's a string there in the stack trace that mentions "Cpanel". If you run cPanel it's possible something on your server is modifying the email headers and causing them to become invalid.

Would need to be resolved on the hosting/cPanel side. Otherwise, probably safe to ignore.
 
I got similar errors, unfortunately. Does anyone have any ideas what I can do?

Code:
Laminas\Mail\Protocol\Exception\RuntimeException: Bounce connection error: cannot read - connection closed? src/vendor/laminas/laminas-mail/src/Protocol/Imap.php:123
Generated by: Unknown account Apr 6, 2022 at 4:25 PM

Stack trace

#0 src/vendor/laminas/laminas-mail/src/Protocol/Imap.php(138): Laminas\Mail\Protocol\Imap->nextLine()
#1 src/vendor/laminas/laminas-mail/src/Protocol/Imap.php(100): Laminas\Mail\Protocol\Imap->assumedNextLine('* OK')
#2 src/vendor/laminas/laminas-mail/src/Protocol/Imap.php(45): Laminas\Mail\Protocol\Imap->connect('xxxxx.xxserver...', 993, 'tls')
#3 src/XF/Mail/Storage/Imap.php(28): Laminas\Mail\Protocol\Imap->__construct('xxxxx.xxserver...', 993, 'TLS')
#4 src/XF/EmailBounce/Processor.php(256): XF\Mail\Storage\Imap::setupFromHandler(Array)
#5 src/XF/SubContainer/Bounce.php(15): XF\EmailBounce\Processor::getDefaultBounceHandlerStorage(Object(XF\Pub\App))
#6 src/XF/Container.php(31): XF\SubContainer\Bounce->XF\SubContainer\{closure}(Object(XF\Container))
#7 src/XF/SubContainer/Bounce.php(43): XF\Container->offsetGet('storage')
#8 src/XF/Job/EmailBounce.php(20): XF\SubContainer\Bounce->storage()
#9 src/XF/Job/Manager.php(260): XF\Job\EmailBounce->run(7.99845)
#10 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 7.99845)
#11 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 7.99845)
#12 job.php(43): XF\Job\Manager->runQueue(false, 8)
#13 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Back
Top Bottom