Disable Email Sending & Receiving During Upgrade


I'm working to upgrade our Jira instance, and I am following the migration path. I have a test server that I've installed the target version (5.2) and am about to start my new instance. I'm at step 3.5 of the migration guide (https://confluence.atlassian.com/display/JIRA052/Migrating+JIRA+to+Another+Server), but want to make sure that sending emails and fetching emails are disabled.

The previous step says to follow the steps in Restoring Data (https://confluence.atlassian.com/display/JIRA052/Restoring+Data). Now unless I'm misunderstanding Step 1, it looks like those are changes when JIRA is not running as a service, however my instance is setup to run as a service. (setenv.bat specifically states the settings have no effect when JIRA runs as a service)

Should I be performing this step by starting JIRA manually by running the start-jira.bat script? Or are there different steps to follow (perhaps setting the Environment Variable at the OS level??) and I can run it as a service?

I just want to make sure I disable them correctly so as to not screw up our production environment (fetching emails) or confusing end users (sending emails).



2 answers

1 accepted

I finally found this article today after I had pretty much completed my migration...


It even references the three specific flags at the bottom of the page! Why was this link not available on the Restoring Data page?!? I guess I'll go comment there.

I found that this is linked on the most up-to-date version of the article. So I guess it's my own fault for looking at the version that I was upgrading to??


0 votes

I set these three environment variables. Doesn't matter exactly how it's run (service, etc), but if these three are set in the environment, it will not send email, check for incoming mail, or follow up on "trackbacks". In older versions, I'd look at setenv.bat, but I'm not sure how the environment is handled in windows services.

-Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true -Djira.trackback.senddisabled=true

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot