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

This widget could not be displayed.

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.

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

594 views 25 15
Join discussion

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