ostiket 1.9.X solucion a STARTTLS failed code: 220, response OK

..en osticket 1.12, 1.10 asi como 1.9 si tiene un sistema de corro fuertemente configurado.. y quiere conectarse localmente (es decir no necesitamos alta seguridad) la configuracion es imposible con localhost aun cuando su puertos estan 100% cerrados y es ILOGICO TANTA SEGURIDAD!!!
El mas ilogico de sus problemas fue “osticket authentication failure [SMTP: STARTTLS failed (code: 220, response: Ok)]“,…

El famoso error junto con otros de  “osticket authentication failure [SMTP: STARTTLS failed (code: 220, response: Ok)]“, esto es porque ostiket no tomaba en cuenta y asumia mucho.. la solucion a estos errores de configuracion son subsanados con este parche (1.9/1.10, para otras debera adaptarlo puesto no apoyamos modas de “lo ultimo”):

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

Esto es porque a partir de php 5.6 las opciones de SSL/TLS son mas estrictas.. https://www.php.net/manual/en/migration56.openssl.php

 

Para mas informacion en el telegram https://t.me/s/vegnuli/463 o en el grupo https://groups.google.com/d/msgid/venenuxsarisari/CALci%2BFSiahk5HSSOmqiwo4mk1CjB3H6LvzKODrChAPkgu9%2B%2B_A%40mail.gmail.com.

3 comments

Leave a comment