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