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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

Outgoing mail server and two "A" records in dns

Dear Support

We have 2 exchange mail  server and both are with this same name. There are two A reconds in dns (round robin)





They answer in a different order - one time and second time and so on

When we have maintenance of exchange mail server nr1 ( then only one exchange server answers

Outgoing mail server on our jira is configured to talk with

When exchange mail server nr1 is down jira loses connetion with mail server but it shouldn't because exchange server nr2 is still running and answer.

Do you know how to fix this problem in jira?

I send some logs:

ERROR [] Caesium-1-1 ServiceRunner     Messaging Error when MailPullerWorker pulls emails from Couldn't connect to host, port:, 995; timeout 50000


Best regards





1 answer

1 accepted

0 votes
Answer accepted

This is a Java problem, not a Jira or even Tomcat (the application server that runs Jira) one.

The java virtual machine caches DNS results by default.  So when your Jira is trying to connect to, it is not looking the name up on every connection, it's been given the cached result by Java.  Your round-robin dns lookup is fine for spreading the load on the mail server around, but it is not load-balancing, and is going to let down any remote process that caches DNS.

You can disable the caching in Java - see - but bear in mind this will make the Jira service do a name lookup on every single remote call it makes to anything, you may find it slows done some activities

Thank you for answer, I try it

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Announcing Mindville Insight is now part of Jira Service Management!

Hello Community! We’re excited to announce that Mindville Insight’s asset and configuration management capabilities will now be integrated into Jira Service Management Premium and Enterprise plan...

600 views 9 14
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