Usage of the default bitbucket-pipelines user in atlassian/email-notify:0.8.0 Pipe

Karthik Arun R
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2023

I would like to use the default bitbucket user account to send out an email using the atlassian/email-notify:0.8.0 pipe in after-script section of my BitBucket pipeline.

I have tried sending emails out from my organization-provided Microsoft accounts but there are firewalls blocking it. I do not have any email server to send out such emails from the pipeline. 

If I can leverage the default pipeline emailer (notifications-noreply@bitbucket.org) for this purpose it'd be great. Or any in-house email system that doesn't require any authentication other than a BitBucket Username and App Password would suffice.

Suggestions are welcome!

1 answer

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 29, 2023

Hello @Karthik Arun R and welcome to the community!

I'm afraid it's not possible to configure the atlassian/email-notify:0.8.0 to send emails on behalf of the bitbucket default email user (notifications-noreply@bitbucket.org).

In order to use this pipe, you will need to have your own email server or use a third-party provider of your preference such as Gmail, Outlook, Yahoo,etc,  that allows you to create a free email account.

Essentially, the pipe works by connecting to the SMTP server provided in HOST variable and triggering the send of an email. This connection with the SMTP server requires authentication, which is configured differently depending on the mail provider you are using. Since the authentication is with the SMTP server, bitbucket username and app password are not applicable, and instead you will need to use the SMTP credentials you have configured on the mail provider end.

You can find more details on how to configure the atlassian/email-notify pipe using the official documentation :

In that documentation you will also find links to some common email providers' docs with instructions and how to set them up.

Thank you, @Karthik Arun R !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events