XF 2.2 XenForo 2.3 beta1 api and email problem

You'd have to give more info for debug purposes. As far as I'm aware everything in the software minus confirmed bugs should be working - so it's either a bug or a config issue.
 
Code:
Symfony\Component\Mailer\Exception\TransportException: 0'dan 0'a e-posta başarısız oldu: "ssl://email-smtp.us-east-2.amazonaws.com:587" ana bilgisayarıyla bağlantı kurulamadı: Stream_socket_client (): SSL işlemi kod 1 ile başarısız oldu. OpenSSL Hata mesajları: hata:140770FC:SSL rutinleri:SSL23_GET_SERVER_HELLO:bilinmeyen protokol src/vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php:154
Tarafından: Garfield 22 Mar 2024 13:40'de

Code:
#0 [internal function]: Symfony\Component\Mailer\Transport\Smtp\Stream\SocketStream->Symfony\Component\Mailer\Transport\Smtp\Stream\{closure}(2, 'stream_socket_c...', '/var/www/vhosts...', 157, Array)
#1 src/vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php(157): stream_socket_client('ssl://email-smt...', 0, '', 60, 4, Resource id #143)
#2 src/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php(251): Symfony\Component\Mailer\Transport\Smtp\Stream\SocketStream->initialize()
#3 src/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php(194): Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->start()
#4 src/vendor/symfony/mailer/Transport/AbstractTransport.php(72): Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->doSend(Object(Symfony\Component\Mailer\SentMessage))
#5 src/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php(136): Symfony\Component\Mailer\Transport\AbstractTransport->send(Object(Symfony\Component\Mailer\SentMessage), Object(Symfony\Component\Mailer\DelayedEnvelope))
#6 src/XF/Mail/Mailer.php(304): Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->send(Object(Symfony\Component\Mime\Email))
#7 src/XF/Mail/Mail.php(581): XF\Mail\Mailer->send(Object(Symfony\Component\Mime\Email), Object(Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport))
#8 src/XF/Admin/Controller/Tools.php(288): XF\Mail\Mail->send(Object(Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport), false)
#9 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Tools->actionTestEmail(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'TestEmail', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#11 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#12 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2588): XF\Mvc\Dispatcher->run()
#14 src/XF.php(532): XF\App->run()
#15 admin.php(13): XF::runApp('XF\\Admin\\App')
#16 {main}

My configuration settings are actually correct
 

Attachments

  • Screenshot_1.webp
    Screenshot_1.webp
    89.4 KB · Views: 3
There is actually no configuration setting problem in the API section, but the API does not do its job.
 

Attachments

  • Screenshot_2.webp
    Screenshot_2.webp
    32.2 KB · Views: 4
  • Screenshot_3.webp
    Screenshot_3.webp
    25.6 KB · Views: 4

There are several likely explanations and solutions for this error:

  1. The server is publishing a bad, self-signed, or expired certificate - fix by replacing the certificate on your mail server. If you don't have access, ask whoever the admin is. You can run some diagnostic tests which will tell you whether the problem is at your end (if the tests pass) or the mail server's.
  2. Your ISP is transparently redirecting your SMTP traffic to a different server - this is effectively a man-in-the-middle attack and is exactly the kind of thing that TLS is designed to protect you from. An appropriate fix here is to use your ISP's server explicitly - this is especially true for GoDaddy - but you may find this interferes with your ability to use some from addresses, especially if you're using common hosts like Gmail or Yahoo.
  3. Your operating system or PHP configuration is using an out of date CA (certificate authority) certificate file, preventing it being able to verify a perfectly valid certificate from the server.
  4. Your PHP version is so old that it lacks support for the TLS versions supported by the server. In this situation even disabling certificate verification will not help.
 
Top Bottom