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

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

Sending email via pipe is failed in bitbucket pipeline

Hi All,

I am trying to send the build status via email using email-notify pipe but its failed with sending failed.

 

- pipe: atlassian/email-notify:0.4.3

variables:

USERNAME: 'yyy@xxxx.com'

PASSWORD: $PASSWORD2

FROM: 'yyy@xxxx.com'

TO: 'abcde@xxxx.com'

HOST: 'corporate.mail.protection.outlook.com'

SUBJECT: '${ALERT_TYPE}:Bitbucket Pipe Notification for ${BITBUCKET_BRANCH}'

DEBUG: 'true' 

Host is corporate office 365 domain

Error message

image.png

Outlook office 365 settings in my account

image.png

 

1 comment

Looks like the port is blocked because that SMTP host only supports port 25.

Ideally you should use smtp.office365.com as the host if you want the port to be 587 (the default, which you don't indicate so it must be). This is the recommended way since SPF will be valid.

That doesn't support MFA though, so if you need that you need to change the port to 25 and use the host you have above. That doesn't support external emailing, which normally is fine. SPF will also fail, so it may be blocked unless you make some rules. You might be able to figure out the SPF setting from Atlassian's TXT record and add it to yours.

Comment

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,725 views 10 16
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