EmailUnsubscribe: Invalid header value detected
Please can you let me know that how can fixing this Server error log?
Zend\Mail\Header\Exception\InvalidArgumentException: Job XF:EmailUnsubscribe: Invalid header value detected src/vendor/zendframework/zend-mail/src/Header/GenericHeader.php:63
Generated by: Unknown account Mar 10, 2020 at 10:13 PM
Stack trace
#0 src/vendor-patch/Zend/Mail/Headers.php(481): Zend\Mail\Header\GenericHeader::splitHeaderLine('X-Ham-Report: S...')
#1 src/vendor-patch/Zend/Mail/Headers.php(232): Zend\Mail\Headers->loadHeader('X-Ham-Report: S...')
#2 src/vendor-patch/Zend/Mail/Headers.php(96): Zend\Mail\Headers->addHeaderLine('X-Ham-Report: S...')
#3 src/vendor/zendframework/zend-mime/src/Decode.php(149): Zend\Mail\Headers::fromString('Return-Path: __construct(Array)
#6 src/vendor/zendframework/zend-mail/src/Storage/Imap.php(126): Zend\Mail\Storage\Message->__construct(Array)
#7 src/XF/EmailUnsubscribe/Processor.php(38): Zend\Mail\Storage\Imap->getMessage(1)
#8 src/XF/Job/EmailUnsubscribe.php(27): XF\EmailUnsubscribe\Processor->processFromStorage(Object(Zend\Mail\Storage\Imap), G)
#9 src/XF/Job/Manager.php(253): XF\Job\EmailUnsubscribe->run(G)
#10 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#11 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#12 job.php(42): XF\Job\Manager->runQueue(false, 8)
#13 {main}
Request state
array(4) {
["url"> => string(8) "/job.php"
["referrer"> => string(45) "/threads/68839/page-860"
["_GET"> => array(0) {
}
["_POST"> => array(0) {
}
}-
Where are you receiving this error? The issue is typically due to an invalid header line, a blank space or character that isn't recognized. 0 -
Where are you receiving this error?
This error generated in Xenforo Admin CP.The issue is typically due to an invalid header line, a blank space or character that isn't recognized.
How to disableX-Ham-Report
Header?0 -
I thought that looked familiar. The forums here use the same platform (xenforo2). Really I wouldn't disable the X-Ham-Report which is used by SpamAssassin but identify the invalid character. The header is being added by the server though, when the message is scanned through SpamAssassin. 0 -
I thought that looked familiar. The forums here use the same platform (xenforo2). Really I wouldn't disable the X-Ham-Report which is used by SpamAssassin but identify the invalid character. The header is being added by the server though, when the message is scanned through SpamAssassin.
Do you enabled Automated unsubscribe email handler in Xenforo Admin CP?0 -
No, this is not enabled. But The information on this would be useful I think: [QUOTE]This option will read and remove emails from the specified account when processing. It MUST be directed to an account whose sole purpose is collecting unsubscribe request emails from this XenForo installation. A value must be entered for the "Unsubscribe email address" option.
This might be something best suited for the xenforo forums here: Welcome to XenForo 2 (if you're running XenForo2 I see some threads on the issue (including yours it looks like) but there is an older one her:0 -
Seems to potentially be an issue with zend mail working with SpamAssassin.
How to disable SpamAssassin and How to disable X-Ham-Report Header? I am still getting this server error log after disabled cPanel - Spam Filters.0 -
So, like I said previously this is a bug in xenforo with Zend and it really makes no sense to disable spam scanning to prevent the error. But, If you're not running SpamAssassin you shouldn't be getting that flag added, it could be also added by the user if their using outbound SpamAssassin scanning. the X-HAM and X-SPAM headers are added by SpamAssassin specifically. What's noted in the exim transaction for the email you're seeing get the error in XenForo? 0
Please sign in to leave a comment.
Comments
7 comments