Awaiting feedback Zend\Mail\Header\Exception\InvalidArgumentException: Job XF:EmailBounce: Invalid header value detected

Affected version
2.0.10
Hello. I have very many error. Its a Bug or not. How i can fix it ?

[LIST] [*]Zend\Mail\Header\Exception\InvalidArgumentException: Job XF:EmailBounce: Invalid header value detected [*]src/vendor/zendframework/zend-mail/src/Header/GenericHeader.php:61 [*]Generiert von: Unbekanntes Konto [*]19. Oktober 2018 um 08:23 [/LIST] [SIZE=5][B]Stack-Trace[/B][/SIZE] #0 src/vendor/zendframework/zend-mail/src/Header/GenericHeader.php(35): Zend\Mail\Header\GenericHeader::splitHeaderLine('Date: Wed, 17 O...') #1 src/vendor/zendframework/zend-mail/src/Headers.php(230): Zend\Mail\Header\GenericHeader::fromString('Date: Wed, 17 O...') #2 src/vendor/zendframework/zend-mail/src/Headers.php(95): Zend\Mail\Headers->addHeaderLine('Date: Wed, 17 O...') #3 src/vendor/zendframework/zend-mime/src/Decode.php(141): Zend\Mail\Headers::fromString('Return-Path: <M...', '\n') #4 src/vendor/zendframework/zend-mail/src/Storage/Pop3.php(108): Zend\Mime\Decode::splitMessage('Return-Path: <M...', 'Return-Path: <M...', '\r\n-------------...') #5 src/XF/EmailBounce/Processor.php(48): Zend\Mail\Storage\Pop3->getRawContent(1) #6 src/XF/Job/EmailBounce.php(27): XF\EmailBounce\Processor->processFromStorage(Object(Zend\Mail\Storage\Pop3), 7.9999988079071) #7 src/XF/Job/Manager.php(241): XF\Job\EmailBounce->run(7.9999988079071) #8 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, 7.9999988079071) #9 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, 7.9999988079071) #10 job.php(14): XF\Job\Manager->runQueue(false, 8) #11 {main} array(4) { ["url"] => string(8) "/job.php" ["referrer"] => string(65) "https://www.domain.com/forums/thread.12/" ["_GET"] => array(0) { } ["_POST"] => array(0) { } }
 
The email may be invalid.

If you look in the bounce email log, do you have any entries that correspond to this time? In particular, ones that may not indicate any action? If so, can you view the email and send us the raw output?
 
I was hoping to get the content of the email so I could determine if this is a bug in the code or an invalid email, and to confirm exactly how the code is handling this case (it's not supposed to get stuck on invalid emails).
 
I was hoping to get the content of the email so I could determine if this is a bug in the code or an invalid email, and to confirm exactly how the code is handling this case (it's not supposed to get stuck on invalid emails).

here is another one.

  • Zend\Mail\Header\Exception\InvalidArgumentException: Bounce message processing failed: Invalid header value detected
  • src/vendor/zendframework/zend-mail/src/Header/GenericHeader.php:63
  • Generated by: Unknown account
  • Nov 23, 2018 at 10:29 AM
Stack trace
#0 src/vendor/zendframework/zend-mail/src/Headers.php(480): Zend\Mail\Header\GenericHeader::splitHeaderLine('X-Ham-Report: S...')
#1 src/vendor/zendframework/zend-mail/src/Headers.php(231): Zend\Mail\Headers->loadHeader('X-Ham-Report: S...')
#2 src/vendor/zendframework/zend-mail/src/Headers.php(95): Zend\Mail\Headers->addHeaderLine('X-Ham-Report: S...')
#3 src/vendor/zendframework/zend-mime/src/Decode.php(149): Zend\Mail\Headers::fromString('Return-Path: <n...', '
')
#4 src/vendor/zendframework/zend-mail/src/Storage/Part.php(102): Zend\Mime\Decode::splitMessage('Return-Path: <n...', 'Return-Path: <n...', '------=_Part_12...', '
', false)
#5 src/vendor/zendframework/zend-mail/src/Storage/Message.php(52): Zend\Mail\Storage\Part->__construct(Array)
#6 src/XF/EmailBounce/Parser.php(169): Zend\Mail\Storage\Message->__construct(Array)
#7 src/XF/EmailBounce/Processor.php(69): XF\EmailBounce\Parser->parseMessage('Return-Path: <n...')
#8 src/XF/EmailBounce/Processor.php(53): XF\EmailBounce\Processor->processMessage('Return-Path: <n...')
#9 src/XF/Job/EmailBounce.php(27): XF\EmailBounce\Processor->processFromStorage(Object(Zend\Mail\Storage\Imap), G)
#10 src/XF/Job/Manager.php(253): XF\Job\EmailBounce->run(G)
#11 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#12 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#13 job.php(42): XF\Job\Manager->runQueue(false, 8)
#14 {main}
 
My comment from before to stands -- I need to see the actual content of the email that triggered this. I believe the mail in question should still be logged in the bounce message log.
 
My comment from before to stands -- I need to see the actual content of the email that triggered this. I believe the mail in question should still be logged in the bounce message log.
No, not at bounce message log.
2019-06-08.webp

2019-06-08 (1).webp
Code:
Zend\Mail\Header\Exception\InvalidArgumentException: Job XF:EmailBounce: Invalid header value detected src/vendor/zendframework/zend-mail/src/Header/GenericHeader.php:63
Generated by: Conta desconhecida 8 Jun 2019 às 11:24
Stack trace
#0 src/vendor-patch/Zend/Mail/Headers.php(481): Zend\Mail\Header\GenericHeader::splitHeaderLine('X-Spam-Report: ...')
#1 src/vendor-patch/Zend/Mail/Headers.php(232): Zend\Mail\Headers->loadHeader('X-Spam-Report: ...')
#2 src/vendor-patch/Zend/Mail/Headers.php(96): Zend\Mail\Headers->addHeaderLine('X-Spam-Report: ...')
#3 src/vendor/zendframework/zend-mime/src/Decode.php(149): Zend\Mail\Headers::fromString('Return-Path: <r...', '
')
#4 src/vendor/zendframework/zend-mail/src/Storage/Pop3.php(106): Zend\Mime\Decode::splitMessage('Return-Path: <r...', 'Return-Path: <r...', '<html>
  <head...')
#5 src/XF/EmailBounce/Processor.php(48): Zend\Mail\Storage\Pop3->getRawContent(1)
#6 src/XF/Job/EmailBounce.php(27): XF\EmailBounce\Processor->processFromStorage(Object(Zend\Mail\Storage\Pop3), 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(15) "/foruns/job.php"
  ["referrer"] => string(85) "https://mywebsite.com/foruns/index.php?threads/docs-to-motos.6743/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Recently I get a lot of those error messages too. For most of the errors there's no entry in the Email log file. But here's one:

Zend\Mail\Header\Exception\InvalidArgumentException: Job XF:EmailBounce: Invalid header value detected src/vendor/zendframework/zend-mail/src/Header/GenericHeader.php:61

Generiert von: Unbekanntes Konto
16. Juni 2019 um 04:05

Stack-Trace
#0 src/vendor/zendframework/zend-mail/src/Header/GenericHeader.php(35): Zend\Mail\Header\GenericHeader::splitHeaderLine('Subject: Wiadom...')
#1 src/vendor/zendframework/zend-mail/src/Headers.php(230): Zend\Mail\Header\GenericHeader::fromString('Subject: Wiadom...')
#2 src/vendor/zendframework/zend-mail/src/Headers.php(95): Zend\Mail\Headers->addHeaderLine('Subject: Wiadom...')
#3 src/vendor/zendframework/zend-mime/src/Decode.php(141): Zend\Mail\Headers::fromString('Delivery-date: ...', '
')
#4 src/vendor/zendframework/zend-mail/src/Storage/Pop3.php(108): Zend\Mime\Decode::splitMessage('Delivery-date: ...', 'Delivery-date: ...', 'This is a MIME-...')
#5 src/XF/EmailBounce/Processor.php(48): Zend\Mail\Storage\Pop3->getRawContent(6)
#6 src/XF/Job/EmailBounce.php(27): XF\EmailBounce\Processor->processFromStorage(Object(Zend\Mail\Storage\Pop3), G)
#7 src/XF/Job/Manager.php(241): XF\Job\EmailBounce->run(G)
#8 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, G)
#9 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, G)
#10 job.php(14): XF\Job\Manager->runQueue(false, 8)
#11 {main}

Status der Anfrage
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(70) "https://www.radioforen.de/index.php?threads/mixe-im-radio.38737/page-2"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

Delivery-date: Sun, 16 Jun 2019 03:44:35 +0200
Received: from [80.67.18.20] (helo=mx16.ispgateway.de)
by mailcluster2-4.ispgateway.de with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.92)
id 1hcKDj-00089G-0P; Sun, 16 Jun 2019 03:44:35 +0200
Return-path: <>
X-Envelope-to: **@radioforen.de
Received: from [82.119.135.162] (helo=mail.nce.ru)
by mx16.ispgateway.de with esmtp (Exim 4.92)
id 1hcKDi-0005ir-Mb
for **@radioforen.de; Sun, 16 Jun 2019 03:44:34 +0200
DKIM-Signature: a=rsa-sha1; c=nowsp; d=nce.ru; s=MDaemon;
t=1560649427; x=1561254227; i=MDaemon@nce.ru; q=dns; h=DomainKey-Signature:
Received:Date:From:Reply-To:Precedence:Subject:To:Message-ID:
Mime-Version:Content-Type; b=NZ4hYYTvxUQTSqRGLnrh4s9Sy4MHMK1/LZ0M
KC6vQo1iWxP/VBfUMeZZpstZzjcVjzFS0D4UnaWtFq7sbfoJudVEGdwgMGPZ4iFe
n6lkVhNtH1MND6tuv/rj9yPpM+UrcMiIR+lnIe/4edNNnpXr9EpnHzw7EfdIfPg5
zRRguf4=
DomainKey-Signature: a=rsa-sha1; s=MDaemon; d=nce.ru;
c=simple; q=dns; h=from:message-id;
b=klRcvRw6v/TBIT44srjqyzSJ/se6IQ7TZyB1gVmviHWGAsw8oKWvZg3810CiYXX9LG02rB4h3u/Pm5dRc52D8XCZd+uUa9QOLv+FYx8BpRPhERtik4B+dgVhAfnlmPPfhzywBfKKmsJbfxtBBmDTTJOIkhXHgITAAlW8yhmIb98=;
Received: from nce.ru by nce.ru
(with RAW) (MDaemon.PRO.v8.1.3.R)
for <**@radioforen.de>; Sun, 16 Jun 2019 04:43:45 +0300
Date: Sun, 16 Jun 2019 04:43:45 +0300
From: MDaemon@nce.ru
Reply-To: BadMsgQ@nce.ru
Precedence: bulk
X-MDSend-Notifications-To: [trash]
Subject: Your message can not be delivered
To: **@radioforen.de
X-MDaemon-Deliver-To: **@radioforen.de
Message-ID: <MDAEMON1584201906160443.AA4345909@nce.ru>
Mime-Version: 1.0
X-Actual-From: MDaemon@nce.ru
X-Return-Path: <>
Content-Type: multipart/mixed; boundary="0616-0443-45-PART-BREAK"
X-MDAV-Processed: mail.nce.ru, Sun, 16 Jun 2019 04:43:47 +0300
X-Received-SPF: none ( mx16.ispgateway.de: domain of mail.nce.ru does not provide an SPF record )
X-DKIM: DKIM failed: (address= domain=nce.ru), signature is bad.
X-DKIM: DKIM failed: (address= domain=MDaemon@nce.ru), signature is bad.
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
spamfilter23.ispgateway.de
X-Spam-Level: ***
X-Spam-Status: No, hits=3.5 required=9999.0 tests=BAYES_95 autolearn=disabled
version=3.4.0
X-Spam-CMAETAG: v=2.2 cv=KpM94SeN c=1 sm=1 tr=0
a=VFSGIKGS9CVVSP6AYEug6A==:17 a=dq6fvYVFJ5YA:10 a=DF3udgruK9qxwAsCrysA:9
a=ULD_L5XPAAAA:8 a=2wyTjiMqKMH34IOCbAIA:9 a=Ft8UYL4EG9YA:10
a=F2cgWS0l-U5rX3nJJX4M:22
X-Spam-CMAECATEGORY:
X-Spam-CMAESUBCATEGORY:
X-Spam-CMAESCORE:

The following data may contain sections which represent BASE64 encoded
file attachments. These sections will be unreadable without MIME aware
tools. Seek your system administrator if you need help extracting any
files which may be embedded within this message.

--0616-0443-45-PART-BREAK
Content-Type: text/plain; charset=windows-1251
Content-Transfer-Encoding: 7bit

Delivery of the attached message:

From : **@radioforen.de
To : main@nce.ru
Date : Wed, 22 May 2019 14:36:29 +0300
Subject: =?utf-8?B?INCa0LDQuiDQt9Cw0LrQvtC90L3QviDRgdC90LjQt9C4?= =?utf-8?B?0YLRjCDQvdCw0LvQvtCzINC90LAg0L/RgNC40LHRi9C7?= =?utf-8?B?0Ywu?=

would violate local account restrictions.

This message was not delivered.
: ��������� �������� [1] ����������� ������

--0616-0443-45-PART-BREAK--


I'm using XenForo v2.0.12.
 
Back
Top Bottom