Two mail servers for JIRA? Edited

My company has 2 networks. One open network that has an internet connection and another network that is completely closed to any outside connections.

There is a layer in between that both networks can access and JIRA resides there.

We also have separate email servers for the networks where there is an internal email server on the closed network that can only send and receive within the closed network.

The open network email has no barriers as to where it can send, except of course to the closed network because that only receives internal mail.

We wish to be able to receive emails to our JIRA Service Desk from both networks and the corresponding notifications for the issue creation to be sent to the relevant server.

Is this possible and if so could you recommend an add-on to use or point us in the right direction? 


2 answers

1 accepted

1 vote
Accepted answer

For incoming mail, it is no problem, you can set up as many incoming servers as you want, and then hook up mail handlers to look at different email boxes on all of them

For the outgoing mail, no, you can't do this in Jira, because there's no way it can possibly know which mail server it might need to connect to for any given address.  It only lets you set up one outgoing mail server because that's all it can know about.

Of course, technically it is possible, you could hack the mail system about in the core code.  I don't think you could implement a rule system with an add-on though.

However, it's not that hard to fake it from the outside.  Install something like postfix on the Jira server and have Jira connect to it on localhost.  You should be able to set up rules in postfix to route the email according to their destination.

Thank you Nic.

The outgoing mail was our main issue and your answer confirms our suspicion.

We were hoping that maybe the incoming mail domain might be used as an indicator as to what mail server to use by way of rules and looking for an add-on for that. We will look into whether postfix is a viable solution. Thanks again.

The incoming mail is too divorced from outgoing for it to know.  Outgoing mail is done by "send mail to the address associated with this user", it has nothing to do with the incoming mail.

What you need to do is capture the difference between (say) Soley@internal.mail.address and Soley@external.mail.address and route them differently - Jira has no function for this, it just hands mail to the single server you've told it to and lets that handle routing and transport.

Hello Sóley,

from top of my head, I think it could be possible. In Jira you can configure more than one mail server for incoming/outgoing mail. Just go to Jira Adminstration -> System -> (in the left column) Mail -> Incoming/Outgoing Mail.

If you have right permissions, you should be able to set both servers. 

Thank you for your answer MoroSystems :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,214 views 5 10
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you