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 vote

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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

765 views 2 19
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