Fixed Transaction failed: Duplicate header 'Auto-Submitted'

bengineer

Member
Licensed customer
Affected version
2.2.15
I upgraded our forum 2 days ago to 2.2.15. Since then I have thousands of these errors:

Code:
Swift_TransportException: Email to xxx@aol.com from info@xxx.net failed: Expected response code 250 but got code "554", with message "554 Transaction failed: Duplicate header 'Auto-Submitted'. "
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:459
Generated by: Unknown account
17 Feb 2024 at 7:21 PM
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), 'info@a2oc.net', Array, Array)
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(206): Swift_Transport_AbstractSmtpTransport->sendTo(Object(Swift_Message), 'info@a2oc.net', Array, Array)
#6 src/XF/Mail/Mailer.php(315): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)
#7 src/addons/Andy/EmailLog/XF/Mail/Mailer.php(10): XF\Mail\Mailer->send(Object(Swift_Message))
#8 src/XF/Mail/Queue.php(148): Andy\EmailLog\XF\Mail\Mailer->send(Object(Swift_Message), NULL, Array)
#9 src/XF/Job/MailQueue.php(12): XF\Mail\Queue->run(8)
#10 src/XF/Job/Manager.php(260): XF\Job\MailQueue->run(8)
#11 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#12 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#13 job.php(43): XF\Job\Manager->runQueue(false, 8)
#14 {main}


This has created a 46Gb mail queue, and has filled my unix disk, making the site unusable. I've had to disable mail in the meantime.

Help!

Ben
 
Last edited:
I also uninstalled
#7 src/addons/Andy/EmailLog/XF/Mail/Mailer.php(10): XF\Mail\Mailer-&gt;send(Object(Swift_Message))<br>

But still have this issue.

We use Amazon SES for our mail relaying, and they are quite fussy about headers being correct.

I've commented out this line in src/XF/Mail/Mail.php (526) until a fix is provided:

PHP:
# $message->getHeaders()->addTextHeader('Auto-Submitted', $this->autoSubmitted);
 
I also use Amazon SES and have the same errors. Currently 20 odd pages, but if I clear, they pop up very quick and consistently.
 
Is this like an undocumented change or something that addon devs need to fix? I honestly don't understand which side of the wall needs fixing. Hopefully we can get some insight?
 
I'll report back. I guess the core software shouldn't introduce breaking changes to existing Add-ons. However, practically speaking, there's no way the XenForo team could validate all Add-ons against such changes. I'll report back on if my assumptions are correct or not.
 
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.3.14).

Change log:
Stop duplicating the Auto-Submitted header
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom