How to set different smtp mail server per JIRA project?

Hi everybody,

we are using JIRA as a helpdesk system so we are sending mails to non JIRA users using the fabulous Script Runner plugin. Although we are able to set a different sending mail address and name per workflow the smtp mail server is the same.

Is it possible to use a different mail server using script runner?

Any idea how to implement it?

Thanx in advance,

Kostas

2 answers

1 accepted

This widget could not be displayed.

Hi Kostas...

Just wondering why you want to use different mail servers per project?

The code that gets the mail server is just: mailServerManager.getDefaultSMTPMailServer() - you could modify it to get a mail server by ID depending on workflow or project.

Hi Jamie,

I know it sounds weird, but the outgoing mails are for clients of different companies and services.

So i want the original message that goes to clients to come from a mail server related to the appropriate company. At the moment emails for both clients (companyA and companyB) are sent from JIRA's default mail server which has a name like:

mail.companyA.com

So i was thinking, in order to avoid that, to use different mail servers per project or workflow.

Thanks for the help once again.

Cheers,

Kostas

OK... but do people really look at the headers to see where the mail was routed? Anyway, if so, I would consider just picking the right mail server depending on if it's company A/B.

That's true. I do not think that people look at the headers but...is something i have to do.

Thanx,

Kostas

This widget could not be displayed.

JEMH plugin will help you to fullfill your requirement.

https://marketplace.atlassian.com/plugins/com.javahollic.jira.jemh-ui

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 Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

216 views 3 0
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