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

How to configure smtp.office365.com:587 for bugzilla?

684 views
Skip to first unread message

deepak shakya

unread,
Jun 5, 2017, 1:44:12 PM6/5/17
to support-...@lists.mozilla.org, deepak shakya
Hi,

I am trying to configure Bugzilla so that emails can be sent using
office365 mailserver.
However, it fails to send.

I am using Bugzilla stable version 5.0

Also if SMTP::TLS supported?

Is this patch valid? -
https://bug1182445.bmoattachments.org/attachment.cgi?id=8702144

I have applied this patch but doesn't seems to work so far.

Bugzilla is hosted on Ubuntu14.0.4


Here's my params config:

"mail_delivery_method" : "SMTP::TLS",
"smtp_ssl" : "1",
"smtp_username" : "deepak...@domain.com",
"smtpserver" : "smtp.office365.com:587",
"smtppassword" : "<mypassword>"


Any help here is much appreciated!

--
Thanks,
Deepak Shakya

Thorsten Schöning

unread,
Jun 6, 2017, 3:36:33 AM6/6/17
to support-...@lists.mozilla.org
Guten Tag deepak shakya,
am Montag, 5. Juni 2017 um 16:53 schrieben Sie:
I don't think so, it doesn't look working (anymore) to me:

https://bugzilla.mozilla.org/show_bug.cgi?id=1182445#c15

The more current one looks good instead:

https://bugzilla.mozilla.org/show_bug.cgi?id=1182445#c13
https://bugzilla.mozilla.org/attachment.cgi?id=8846930

Instead of patching Bugzilla I suggest using sendmail. You have no
guarantee that the patches ever make it into a final release as is and
therefore might risk problems in upgrading in future.

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

Gervase Markham

unread,
Jun 6, 2017, 4:49:56 AM6/6/17
to deepak shakya
On 05/06/17 15:53, deepak shakya wrote:
> Also if SMTP::TLS supported?

SMTP over TLS is supported, but not using that module. Please explain
exactly what didn't work (and what errors you got logged or in the UI)
when you simply tried to use Bugzilla's built-in support for secure SMTP.

https://bugzilla.readthedocs.io/en/latest/installing/essential-post-install-config.html#email

If you can't get Office365 to work, try using Gmail (with a throwaway
account if necessary) and make sure that works.

Gerv
Message has been deleted

Dimitar Paskov

unread,
Feb 5, 2019, 8:30:46 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