Fix "Outgoing mail was disabled with the -Datlassian.mail.senddisabled=true" in Jira
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Outgoing mail is disabled, and a notification is on the Outgoing Mail page of "Outgoing mail was disabled with the -Datlassian.mail.senddisabled=true JVM argument before Jira was started. Jira cannot send email until you remove the JVM argument and restart Jira."
Diagnosis
When examining the startup arguments in setenv.sh,
or from the atlassian-jira.log
when starting up, the instance is not reporting the following as being set:
1
2
3
4
5
-Datlassian.mail.senddisabled=true
-Datlassian.mail.fetchdisabled=true
-Datlassian.mail.popdisabled=true
Outgoing mail page will display the error mentioned in the summary, regardless.
Cause
The instance may be in Dev Mode, which does the following:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// turn off minification of web resources, available from plugins 2.3 onwards
setDefault("atlassian.webresource.disable.minification", "true");
// disable mail
setDefault("atlassian.mail.senddisabled", "true");
setDefault("jira.trackback.senddisabled", "true");
setDefault("atlassian.mail.fetchdisabled", "true", "atlassian.mail.popdisabled");
// disable caches
setDefault("com.atlassian.gadgets.dashboard.ignoreCache", "true");
setDefault("atlassian.disable.caches", "true");
// turn on jelly
setDefault(JELLY_SYSTEM_PROPERTY, "true");
//jira dev mode should also set atlassian.dev.mode to true if it isn't already set!
setDefault("atlassian.dev.mode", "true");
// turn on i18n reload
setDefault(JIRA_I18N_RELOADBUNDLES, "true");
Solution
Search for and remove the following startup parameter, then restart Jira:
1
-Datlassian.dev.mode=true
Was this helpful?