Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help, SMTP::TLS

227 views
Skip to first unread message

Власов Андрей Георгиевич

unread,
Aug 30, 2017, 3:59:42 AM8/30/17
to support-...@lists.mozilla.org
Hi!

Bugzilla version 5.0.3
Need setup SMTP with TLS (port 587).

I successfully install /usr/bin/perl install-module.pl Email::Send::SMTP::TLS.

But if I add string use Email::Send::SMTP::TLS in Mailer.pm, I view this error:
Software error:
Attempt to reload IO/Socket/SSL.pm aborted.
Compilation failed in require at lib/Net/SMTP/TLS/ButMaintained.pm line 16.
BEGIN failed--compilation aborted at lib/Net/SMTP/TLS/ButMaintained.pm line 16.
Compilation failed in require at lib/Email/Send/SMTP/TLS.pm line 7.
BEGIN failed--compilation aborted at lib/Email/Send/SMTP/TLS.pm line 7.
Compilation failed in require at Bugzilla/Mailer.pm line 28.
BEGIN failed--compilation aborted at Bugzilla/Mailer.pm line 28.
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 /var/www/html/bugzilla/editparams.cgi line 15.
BEGIN failed--compilation aborted at /var/www/html/bugzilla/editparams.cgi line 15.


How to fix?

Thorsten Schöning

unread,
Aug 30, 2017, 4:36:54 AM8/30/17
to support-...@lists.mozilla.org
Guten Tag Власов Андрей Георгиевич,
am Mittwoch, 30. August 2017 um 09:59 schrieben Sie:

> I successfully install /usr/bin/perl install-module.pl Email::Send::SMTP::TLS.

> But if I add string use Email::Send::SMTP::TLS in Mailer.pm, I view this error:
> Software error:

The following older answer should be of interest for you:

https://groups.google.com/d/msg/mozilla.support.bugzilla/fLSwshCY76k/jYuqCovkBwAJ
https://bugzilla.readthedocs.io/en/latest/installing/essential-post-install-config.html#gmail

So don't just change arbitrary code, but first try to use the built-in
TLS support and describe what doesn't work for you.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning E-Mail: Thorsten....@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/

Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Dimitar Paskov

unread,
Feb 5, 2019, 8:27:12 AM2/5/19
to
Hello,
I know this is old but there are couple of threads running into the same issue so here is the simplest workaround. Without installing any additional fixes or modules just manually edit the params.json and set "smtp_ssl" : "starttls". Note however that changing the email settings in Bugzilla will overwrite your value so if you want a permanent solution you should edit Mailer.pm and in the $method eq "SMTP" if you should replace:

ssl => Bugzilla->params->{'smtp_ssl'},

with

$port eq "587" ? (ssl => "starttls") : (ssl => Bugzilla->params->{'smtp_ssl'}),
0 new messages