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 "oticket 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):
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.phpLenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com