Bugzilla's unablitiy to send mail using office 365 Smtp server

Hi,

Im using bugzilla version 4.4.9 on ubuntu. Bugzilla is unable to send mail using office 365 Smtp server. I have configured bugzilla to the best of my knowledge.

mail_delivery_method-> Smtp

mailfrom -> username of the mail account 

smtpserver-> smtp.office365.com:587

smtp_ssl-> on

smtp_debug-> on

smtp_username->****

smtp_password->****

It is throwing error and traceback as below->

Error-> There was an error sending mail . Couldn't connect to smtp.office365.com:587

Traceback:

at Bugzilla/Mailer.pm line 174:

Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/BugMail.pm line 354 Bugzilla::BugMail::sendMail(...) called at Bugzilla/BugMail.pm line 248 Bugzilla::BugMail::Send(...) called at Bugzilla/Bug.pm line 1199 Bugzilla::Bug::_send_bugmail(...) called at Bugzilla/Bug.pm line 1138 Bugzilla::Bug::send_changes(...) called at /var/www/html/bugzilla/process_bug.cgi line 378

Please guide me through this. I'm looking forward for help. Thanks in advance.

Regards,
Tumul Kumar
(PII removed by moderator to protect your privacy)

Hi Tumul,

Looking in you configuration description, believe you are missing TLS, for Office 365 is one of the requirements.

Take a look to the following article to set up smtp relay
https://support.office.com/en-us/article/how-to...

Hope it helps

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Neftali,

In the configuration, I couldn't find Tls anymore other than at two places->

1)ssl_redirect-> on,  at Required Settings under Parameters in Administration

2)smtp_ssl-> on, at Email under Parameters in Administration

 Please help me out if I'm missing something.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Tumul,

Sorry for the delay, make sure that the 587 port is open because youre error said could not connect.

I foiund a tread that will help you out to configure the smtp relay.

https://groups.google.com/forum/m/#!topic/mozil...

Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated November 7, 2023 Views 1,497 Applies to: