Fixed Duplicate header 'List-Unsubscribe'

M@rc

Well-known member
Affected version
2.2.14
These Duplicate header errors started popping up sometimes after upgrading to xenForo 2.2.14:
Code:
Swift_TransportException: Email to users-email@gmail.com from admin@domain.com failed: Expected response code 250 but got code "554", with message "554 Transaction failed: Duplicate header 'List-Unsubscribe'. " src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:459
Generated by: Unknown account Jan 31, 2024 at 1:29 AM

Stack trace
#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(344): Swift_Transport_AbstractSmtpTransport->assertResponseCode('554 Transaction...', Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(305): Swift_Transport_AbstractSmtpTransport->executeCommand('
.
', Array, Array, false, NULL)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(406): Swift_Transport_EsmtpTransport->executeCommand('
.
', Array)
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(502): Swift_Transport_AbstractSmtpTransport->streamMessage(Object(Swift_Message))
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(518): Swift_Transport_AbstractSmtpTransport->doMailTransaction(Object(Swift_Message), 'admin+1ee4ea5a+...', Array, Array)
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(206): Swift_Transport_AbstractSmtpTransport->sendTo(Object(Swift_Message), 'admin+1ee4ea5a+...', Array, Array)
#6 src/XF/Mail/Mailer.php(315): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)
#7 src/XF/Mail/Queue.php(148): XF\Mail\Mailer->send(Object(Swift_Message), Object(XF\Mail\SmtpTransport), Array)
#8 src/XF/Job/MailQueue.php(12): XF\Mail\Queue->run(8)
#9 src/XF/Job/Manager.php(260): XF\Job\MailQueue->run(8)
#10 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#11 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#12 job.php(43): XF\Job\Manager->runQueue(false, 8)
#13 {main}

Request state
array(4) {
  ["url"] => string(14) "/forum/job.php"
  ["referrer"] => string(28) "https://domain.com/forum/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Swift_TransportException: Email to email from site admin com failed: Expected response code 250 but got code "554", with message "554 Transaction failed: Duplicate header 'List-Unsubscribe'. "
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:459

----------
Stack trace

#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(344): Swift_Transport_AbstractSmtpTransport->assertResponseCode('554 Transaction...', Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(305): Swift_Transport_AbstractSmtpTransport->executeCommand('
.
', Array, Array, false, NULL)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(406): Swift_Transport_EsmtpTransport->executeCommand('
.
', Array)
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(502): Swift_Transport_AbstractSmtpTransport->streamMessage(Object(Swift_Message))
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(518): Swift_Transport_AbstractSmtpTransport->doMailTransaction(Object(Swift_Message), 'noreply+f8ad1f5...', Array, Array)
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(206): Swift_Transport_AbstractSmtpTransport->sendTo(Object(Swift_Message), 'noreply+f8ad1f5...', Array, Array)
#6 src/XF/Mail/Mailer.php(315): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)
#7 src/XF/Mail/Queue.php(148): XF\Mail\Mailer->send(Object(Swift_Message), Object(XF\Mail\SmtpTransport), Array)
#8 src/XF/Job/MailQueue.php(12): XF\Mail\Queue->run(8)
#9 src/XF/Job/Manager.php(260): XF\Job\MailQueue->run(8)
#10 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#11 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#12 job.php(43): XF\Job\Manager->runQueue(false, 8)
#13 {main}


--
Request state

array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(129) "https://www. abc. com/?gclid=Cj0KCQiA2KitBhCIARIsAPPMEhLahymGfd3p_w7_QyHceUX9F0swLfZh3Vx6U-Rejb66SpIw-NLDjjkaAqR9EALw_wcB"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.15).

Change log:
Avoid setting duplicate List-Unsubscribe headers.
There may be a delay before changes are rolled out to the XenForo Community.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.15).

Change log:

There may be a delay before changes are rolled out to the XenForo Community.
I'm running latest version and I'm experiencing this bug.
 
We'd recommend creating a new troubleshooting thread from scratch in the first instance, posting the full error and stack trace.

There has been another similar report but it isn't exactly the same as this (a different header) and not related to this bug.
 
We'd recommend creating a new troubleshooting thread from scratch in the first instance, posting the full error and stack trace.

There has been another similar report but it isn't exactly the same as this (a different header) and not related to this bug.
Yes I referred to that here:

New bug thread created -

 
It's clear here, either there has been a change to XF that Devs need to adjust - or there's a bug with XF. At this point, I don't think it's user error.
 
Back
Top Bottom