XF 2.2 Server error log: ErrorException: Email to / from failed: [E_WARNING]

_Al

Active member
Hi all,

I'm hoping someone can assist me here. I have set up AWS SES to handle emails from my board. I get this error:

Code:
    ErrorException: Email to CUSTOMER EMAIL from ADMIN EMAIL failed: [E_WARNING] stream_socket_enable_crypto(): Peer certificate CN=`SERVER-IP-ADDRESS.cprapid.com' did not match expected CN=`email-smtp.eu-north-1.amazonaws.com' src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:94

    Generated by: Unknown account Jul 30, 2024 at 9:35 AM

Stack trace

#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] str...', '/home/shattered...', 94)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(94): stream_socket_enable_crypto(Resource id #169, true, 57)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(348): Swift_Transport_StreamBuffer->startTLS()
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(148): Swift_Transport_EsmtpTransport->doHeloCommand()
#4 src/XF/Mail/Mailer.php(294): Swift_Transport_AbstractSmtpTransport->start()
#5 src/XF/Mail/Queue.php(148): XF\Mail\Mailer->send(Object(Swift_Message), Object(XF\Mail\SmtpTransport), Array)
#6 src/XF/Job/MailQueue.php(12): XF\Mail\Queue->run(8)
#7 src/XF/Job/Manager.php(260): XF\Job\MailQueue->run(8)
#8 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#9 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#10 job.php(43): XF\Job\Manager->runQueue(false, 8)
#11 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(57) "https://shatteredsunrts.com/admin.php?logs/server-errors/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Delete

I have confirmed that emails are working from my server and AWS SES shows both the domain and email address are verified, so I think the issue lies somewhere within xenForo. Has anyone had a similar issue? How did you fix it? Thanks.
 
Aye. Thanks @Jeremy P - they have removed the restrictions (on the second time of asking, initially they said the issue was with xenForo!).

I'm now just waiting for AWS SES to move me to production mode and I'm keeping my fingers and toes crossed that it sorts it.
 
Back
Top Bottom