Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to configure email notifications using Microsoft office-365? Edited

I'm using `atlassian/email-notify:0.4.2` and trying to set build notifications using office365 but I am getting following error. 

Failed to send email to $BUILD_NOTIFY_USERNAME. Check your configuration settings: (535, b'5.7.3 Authentication unsuccessful [BY3PR05CA0008.namprd05.prod.outlook.com]'

Credentials are correct however I'm not sure what 'HOST' value should be used. I have tried it with following host values with no difference in the result

  • outlook.office.com
  • smtp.office365.com
  • outlook.office365.com

As per IT team we don't allow external SMTP connections to O365 because Microsoft recommends against this for security reasons. We suspect this failure is because of it.

1. By default Bitbucket sends notification email to only commit author when pipeline fails. Is it possible to configure this field to a list of email addresses either at repository or workspace level?

2. Can someone recommend what is the best practice if we want to use O365 to send build notifications considering the recommendation from Microsoft?

3. Any guidance on what HOST value should be used for office365?

Thanks in advance.

1 answer

0 votes

Hi @a2l  and welcome to the Community!

1. By default Bitbucket sends notification email to only commit author when pipeline fails. Is it possible to configure this field to a list of email addresses either at repository or workspace level?

Such notifications can be enabled by each user themselves, the following way:

  1. Open the repository's Source page in Bitbucket website
  2. Select the 3 dots at the top right corner > Manage notifications
  3. Select Watch this repository and then Subscribe to notifications about all > select Pipelines

When a user does this, they'll get an email notification when a Pipelines build fails in this repo.

2. Can someone recommend what is the best practice if we want to use O365 to send build notifications considering the recommendation from Microsoft?

For this I am not sure, as it's something I've never set up myself, so I'll leave it for someone else to reply who has experience with this.

3. Any guidance on what HOST value should be used for office365?

As per Microsoft documentation here the value for HOST should be smtp.office365.com

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,575 views 1 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you