ostiket 1.9.X SOLUTION TO "SMTP: STARTTLS failed code: 220, response OK " - McKAY brothers, multimedia emulation and support

About McKAY's blog

ads

Post Top Ad

Your Ad Spot

2021/05/24

ostiket 1.9.X SOLUTION TO "SMTP: STARTTLS failed code: 220, response OK "

 

.in osticket 1.12, 1.10 as well as 1.9 if you have a strongly configured running system .. and you want to connect locally (that is, we do not need high security) the configuration is impossible with localhost even though its ports are 100% closed and it is ILOGICO SO SAFETY!!!

The most illogical of his problems was " oticket authentication failure [SMTP: STARTTLS failed (code: 220, response: Ok)] ", ...
The famous error along with others of " oticket authentication failure [SMTP: STARTTLS failed (code: 220, response: Ok)] ", this is because ostiket did not take into account and assumed a lot .. the solution to these configuration errors are corrected with this patch (1.9 / 1.10, for others you will have to adapt it since we do not support "the latest" fashions):
 

 
diff --git a/include/pear/Net/SMTP.php b/include/pear/Net/SMTP.php
index 8f4e92b..3633ef7 100644
--- a/include/pear/Net/SMTP.php
+++ b/include/pear/Net/SMTP.php
@@ -169,6 +169,9 @@ class Net_SMTP
         $this->socket_options = $socket_options;
         $this->timeout        = $timeout;
 
+        $this->socket_options['ssl']['verify_peer'] = FALSE;
+        $this->socket_options['ssl']['verify_peer_name'] = FALSE;
+
         /* Include the Auth_SASL package.  If the package is available, we
          * enable the authentication methods that depend upon it. */
         if (@include_once 'Auth/SASL.php') {
@@ -573,7 +576,8 @@ class Net_SMTP
                 return $result;
             }
             if (isset($this->socket_options['ssl']['crypto_method'])) {
-                $crypto_method = $this->socket_options['ssl']['crypto_method'];
+                $this->socket_options['ssl']['verify_peer_name'] = FALSE;
+                $crypto_method = 'STREAM_CRYPTO_METHOD_TLS_CLIENT | '. $this->socket_options['ssl']['crypto_method'];
             } else {
                 /* STREAM_CRYPTO_METHOD_TLS_ANY_CLIENT constant does not exist
                  * and STREAM_CRYPTO_METHOD_SSLv23_CLIENT constant is


The reason is cos since php 5.6 openssl options are more severe and restricted.. https://www.php.net/manual/en/migration56.openssl.php
 
More information at Telegram groups https://t.me/s/vegnuli/463 and   @opentech

2 comentarios:

  1. this is a bunch of nonsense ramblings

    ResponderBorrar
  2. you are a nonsese stupid user that does not take in consideration others people that still have this problem

    i noted in some forums that more people from non english speakers cannot ask cos there's some USA stupids that always said things like you

    ResponderBorrar

no stupid winbuntu users allowed!

Entradas populares

Post Top Ad

Your Ad Spot