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

Mail server - Use Office 365 Direct Send config

Hi,

Up until now, my company was using one of our Office365 account as config for the atlassian mail server functionality (also in other Atlassian products).

Because of the extreme amount of e-mails now located in the "Sent" folder of this e-mail (mine), I am trying to use another way. For now, we don't want to buy a license just to use as a dummy sending e-mail.

I've found this documentation for Office 365. The Option 2 seems intersting to indeed avoid paying for a dummy mailbox.

I've changed my TXT DNS as advised, using Bitbucket's server IP and I've configured Bitbucket as such :

screenshot_1.png

I've tried with and without the username set to equal the "Email from" field, but it doesn't work.

In the logs, it says :

java.net.ConnectException: Connection refused (Connection refused). Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: domain-com.mail.protection.outlook.com, 25; timeout 30000;

I've checked with a DNS tool to be sure the DNS config was propagated. Of course, my config is not using domain-com, but a real one.

So, is this method supported by atlassian products ? If not, could it be, so we can use any email we want without having actually to create it as a mailbox and pay for the license ?

1 answer

1 accepted

1 vote
Answer accepted

Hi,

This should definitely work, because it's essentially unauthenticated SMTP. Based on the error, it could be caused by a firewall issue, maybe one that prevents outbound connections from your Bitbucket Server instance.

A simple test to confirm would be running something like telnet domain-com.mail.protection.outlook.com 25 to see if you're able to establish a connection or not.

Cheers,

Christian

Premier Support Engineer

Atlassian

In the end, I did not use this method for the e-mail sending, but I think you are right and I forgot to check in some firewall settings somewhere.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.6.0
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,581 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