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

How to configure Bugzilla to use smtp.office365.com as smtpserver

489 views
Skip to first unread message

deepak shakya

unread,
Jun 7, 2017, 8:32:23 AM6/7/17
to support-...@lists.mozilla.org
Hi,

I have a problem configuring Bugzilla to use smtp.office365.com.
As per various sources/links, I have configured it as follows:-

In data/params.json file:-

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

Added following lines of code in Mailer.pm file:-

if ($method eq "SMTP::TLS") {
my ($host, $port) = split(/:/, Bugzilla->params->{'smtpserver'}, 2);
$transport = Bugzilla->request_cache->{smtp} //=
Email::Sender::Transport::SMTPS->new({
host => $host,
defined($port) ? (port => $port) : (),
sasl_username => Bugzilla->params->{'smtp_username'},
sasl_password => Bugzilla->params->{'smtp_password'},
helo => $hostname,
#ssl => Bugzilla->params->{'smtp_ssl'},
ssl => 'starttls',
debug => Bugzilla->params->{'smtp_debug'} });
}



*Error logs:*


There was an error sending mail ....... failed AUTH: Command unknown: 'AUTH'


Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/BugMail.pm line 381


Bugzilla::BugMail::sendMail(...) called at Bugzilla/BugMail.pm line 280

Bugzilla::BugMail::Send(...) called at Bugzilla/Bug.pm line 1355

Bugzilla::Bug::_send_bugmail(...) called at Bugzilla/Bug.pm line 1293

Bugzilla::Bug::send_changes(...) called at
/var/www/html/bugzilla/process_bug.cgi line 386


*Software error:*

Can't locate object method "disconnect" via package
"Email::Sender::Transport::SMTPS" at Bugzilla.pm line 686. END failed--call
queue aborted at /var/www/html/bugzilla/process_bug.cgi line 150.
Looking for help to configure Bugzilla to use office365
smtpserver successfully.

I have configured GMAIL successfully and expected that office365 smtpserver
would work in a similar way.

--
Thanks,
Deepak Shakya

Thorsten Schöning

unread,
Jun 7, 2017, 10:04:37 AM6/7/17
to support-...@lists.mozilla.org
Guten Tag deepak shakya,
am Mittwoch, 7. Juni 2017 um 14:32 schrieben Sie:

> Hi,

Please don't create new threads for the same topic, but answer to
existing mails and their questions instead. Makes it much easier to
follow you.

> I have configured GMAIL successfully and expected that office365 smtpserver
> would work in a similar way.

As per Gervase advice, revert your changes to Bugzilla, configure
GMAIL and test if it works. If that works configure Office365 the same
way and test if it works. If it doesn't, describe your exact
configuration for GMAIL and Office365 and the error you get for
testing Office365. Notice that there's a smtp_debug flag available in
the mail settings, use that if Office365 fails, try again and have a
look at and provide the logs of your web server containing the output
of smtp_debug.

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

0 new messages