/ / Falló AUTH: primero debe emitir un comando STARTTLS - perl, email, ssl, smtp, bugzilla

Falló AUTH: Primero debe emitir un comando STARTTLS - perl, email, ssl, smtp, bugzilla

No puedo, por mi vida, descubrir cómoConfigurar Bugzilla para enviar correo electrónico utilizando TLS. Tengo el sitio de Bugzilla funcionando, sin embargo, cuando intento cambiar el correo electrónico de mi cuenta de Bugzilla, el sistema falla con lo siguiente (configuro mis parámetros de correo electrónico para usar mi servidor de correo electrónico de Amazon AWS):

Ocurrió un error inesperado. Esto podría ser un problema temporal, o algún código se está comportando incorrectamente. Si el problema persiste, envíe esta página por correo electrónico a ... @ ..... com con los detalles de lo que estaba haciendo en el momento en que apareció este mensaje.

URL: http://example.com/userprefs.cgi?new_password1=&new_password2=&tab=account&old_login=jdoe%40example.com&realname=John%20Doe&new_login_name=johndoe422%40example.net&dosave=1&token=...&old_password=...

Se produjo un error al enviar el correo desde "bugzilla@example.com" a "johndoe422@example.com": falló AUTH: primero debe emitir un comando STARTTLS

Rastrear:

en Bugzilla / Mailer.pm línea 186.
Bugzilla :: Mailer :: MessageToMTA (...) llamado en la línea 116 de Bugzilla / Token.pm
Bugzilla :: Token :: IssueEmailChangeToken (...) llamado a /srv/www/bugzilla/userprefs.cgi línea 120
main :: SaveAccount (...) llamado en /srv/www/bugzilla/userprefs.cgi línea 608

Así que procedí a intentar solucionar este problema siguiendo las instrucciones en: Alertas de Bugzilla usando Gmail

Logré instalar el Email::Send::SMTP::TLS módulo usando cpanm (No estoy seguro de por qué no puedo instalar ningún módulo a través de CPAN), después de la instalación, el SMTP::TLS La opción no aparece en el desplegable. Simplemente lo ignoré y continúo actualizando Mailer.pm como se indica.

Después de eso, cuando actualizo mi página de bugzilla, obtengo el siguiente error:

Software error:

Global symbol "@args" requires explicit package name at Bugzilla/Mailer.pm line 138.
Global symbol "@args" requires explicit package name at Bugzilla/Mailer.pm line 144.
Compilation failed in require at Bugzilla/Auth.pm line 22.
BEGIN failed--compilation aborted at Bugzilla/Auth.pm line 22.
Compilation failed in require at Bugzilla.pm line 23.
BEGIN failed--compilation aborted at Bugzilla.pm line 23.
Compilation failed in require at /srv/www/bugzilla/editparams.cgi line 15.
BEGIN failed--compilation aborted at /srv/www/bugzilla/editparams.cgi line 15.
For help, please send mail to this site"s webmaster, giving this error message and the time and date of the error.

He leído que quizás se deba a que Email :: Send :: SMTP :: TLS requiere el paquete Net :: SSLeay. Por lo tanto, procedo a intentar instalarlo utilizando cpanm. Sin embargo, cpanm falla con el siguiente registro:

23 *** Found OpenSSL-1.0.1f installed in /usr
24 *** Be sure to use the same compiler and options to compile your OpenSSL, perl,
25     and Net::SSLeay. Mixing and matching compilers is not supported.
26 Do you want to run external tests?
27 These tests *will* *fail* if you do not have network connectivity. [n] n
28 Checking if your kit is complete...
29 Looks good
30 Generating a Unix-style Makefile
31 Writing Makefile for Net::SSLeay
32 Writing MYMETA.yml and MYMETA.json
33 -> OK
34 Checking dependencies from MYMETA.json ...
35 Checking if you have Test::More 0.60_01 ... Yes (1.001014)
36 Checking if you have MIME::Base64 0 ... Yes (3.13)
37 Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.10)
38 Building and testing Net-SSLeay-1.72
39 cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm
40 AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay)
41 blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters:
42  directory blib/lib/auto/Net/SSLeay:
43   do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https
44   do_httpx3.al, do_httpx2.al, do_httpx4.al truncate to do_httpx
45   get_https.al, get_https3.al, get_https4.al, get_http.al, get_http3.al, get_http4.al, get_httpx.al, get_httpx3.al, get_httpx4.al truncate to get_http
46   head_https.al, head_https3.al, head_https4.al, head_http.al, head_http3.al, head_http4.al, head_httpx.al, head_httpx3.al, head_httpx4.al truncate to head_htt
47   post_https.al, post_https3.al, post_https4.al, post_http.al, post_http3.al, post_http4.al, post_httpx.al, post_httpx3.al, post_httpx4.al truncate to post_htt
48   put_https.al, put_https3.al, put_https4.al, put_http.al, put_http3.al, put_http4.al, put_httpx.al, put_httpx3.al, put_httpx4.al truncate to put_http
49   ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read
50   ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ
51   tcp_read_all.al, tcp_read_until.al, tcp_read_CRLF.al truncate to tcp_read
52   tcp_write_all.al, tcp_write_CRLF.al truncate to tcp_writ
53 cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm
54 cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod
55 Running Mkbootstrap for Net::SSLeay ()
56 chmod 644 "SSLeay.bs"
57 "/usr/bin/perl" "-Iinc" "/usr/share/perl/5.18/ExtUtils/xsubpp"  -typemap "/usr/share/perl/5.18/ExtUtils/typemap" -typemap "typemap"  SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSL    eay.c
58 cc -c  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g       -DVERSION="1.72" -DXS_VERSION="1.72" -fPIC "-I/usr/lib/perl/5.18/CORE"   SSLeay.c
59 {standard input}: Assembler messages:
60 {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
61 cc: internal compiler error: Killed (program cc1)
62 Please submit a full bug report,
63 with preprocessed source if appropriate.
64 See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
65 make: *** [SSLeay.o] Error 4
66 -> FAIL Installing Net::SSLeay failed. See /home/ubuntu/.cpanm/work/1443609644.32449/build.log for details. Retry with --force to force install it.

No conozco a Perl y no entiendo por qué me aparecen errores de izquierda a derecha. Leí en muchos lugares que simplemente puedo instalar todos los paquetes disponibles usando un comando como:

/usr/bin/perl install-module.pl --all

Sin embargo, este comando no funciona para mí. (No puedo instalar ningún módulo utilizando CPAN, no estoy seguro de por qué) Simplemente no hace nada por mí. Esta es la salida que obtengo al ejecutar install-module.pl:

ubuntu@ip-10-130-10-107:/srv/www/bugzilla$ sudo /usr/bin/perl install-module.pl --all
Checking for                 CPAN (v1.81)     ok: found v2.10
Checking for                 YAML (any)       ok: found v1.15
Checking for   ExtUtils-MakeMaker (v6.31)     ok: found v7.1
defined(@array) is deprecated at /usr/share/perl5/Chart/Base.pm line 181.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /usr/share/perl5/Chart/Base.pm line 233.
(Maybe you should just omit the defined()?)
Reading "/home/ubuntu/.cpan/Metadata"
Fetching with LWP:
http://cpan.mirror.vexxhost.com/authors/01mailrc.txt.gz
Reading "/home/ubuntu/.cpan/source/authors/01mailrc.txt.gz"
............................................................................DONE
Fetching with LWP:
http://cpan.mirror.vexxhost.com/modules/02packages.details.txt.gz
Reading "/home/ubuntu/.cpan/source/modules/02packages.details.txt.gz"
Database was generated on Wed, 30 Sep 2015 09:53:42 GMT
..........ubuntu@ip-10-130-10-107:/srv/www/bugzilla$

No estoy seguro de por qué las cosas simplemente no funcionan para mí. ¿Tengo una instalación perl defectuosa o qué? ¿Puede algún perl gurú por favor ayudar?

¡Gracias!

Respuestas

0 para la respuesta № 1

Resolví el problema eliminando mi instalación de Bugzilla (5.0.1) y reinstalé completamente una versión anterior (4.4.10). Las cosas solo funcionaron con la versión anterior.


0 para la respuesta № 2

Luché con el mismo problema, con Bugzilla 5,por medio dia No tuve ningún éxito al hacer que STARTTLS funcionara, lo cual es extraño, porque es la forma estándar de enviar correos electrónicos en estos días. Finalmente, desistí y activé SMTPS (puerto 465) en mi servidor Postfix. Fue muy fácil de hacer. Esto, y una vez que lo hice, Bugzilla podría enviar correos electrónicos fácilmente. Si tiene control sobre el servidor de correo, este es un enfoque más fácil porque la vida es demasiado corta para pasarlo leyendo el código perl.