Two mail servers for JIRA?

Soley Gudmundsdottir November 9, 2017

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

2 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 9, 2017

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.

Soley Gudmundsdottir November 10, 2017

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.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 10, 2017

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.

0 votes
MoroSystems Support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2017

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. 

Soley Gudmundsdottir November 10, 2017

Thank you for your answer MoroSystems :)

Suggest an answer

Log in or Sign up to answer