Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
None
-
33
-
3
-
Description
NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.
Hi guys.
It would be really nice if a JIRA incoming mail handler could be disabled, rather than having to be deleted to stop it processing.
Scenarios where this would be extremely useful. ie. disabled until the issue resolved.
- User managed mailbox which contains items that cannot be processed, therefore generating ongoing errors.
- User managed mailbox which has an authentication issue.
- Any maintenance of a mailbox or changes to the folder structure etc.
Thanks
Mark.
Workaround
Add to the JAVA_OPTS or (JVM_SUPPORT_RECOMMENDED_ARGS) section in <Jira_Install>/bin/setenv.sh
# Uncomment this setting if you want to import data without notifications # " -Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true -Datlassian.mail.popdisabled=true"
Previous workaround
Initial report asks for feature to do this without deleting the handler. This workaround will delete the mail handler and is presented for the sake of those looking for available methods:
From: Creating a lower environment for Jira
To prevent emails being sent from the test environment and issues being created in this environment rather than in production, delete all incoming and outgoing mail servers by truncating the mailserver table.
truncate mailserver;
Additionally, remove all mail handlers by running the following command:
delete from serviceconfig where clazz='com.atlassian.jira.service.services.mail.MailFetcherService';
To make sure no email is sent from the test environment, it's also a good idea to:
- Remove all subscriptions in Jira database with:
delete from filtersubscription;
- Remove notification schemes from all projects in Jira database with:
delete from nodeassociation where sink_node_entity='NotificationScheme';
Attachments
Issue Links
- is related to
-
JRASERVER-24964 Document the effects of jira.dev.mode
- Closed
- relates to
-
JRACLOUD-40671 The ability to disable mail handlers
- Closed