Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-40671

The ability to disable mail handlers

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • 33
    • 3
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    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

          Activity

            People

              Unassigned Unassigned
              12b3d1cd43e6 Mark Szymanski
              Votes:
              98 Vote for this issue
              Watchers:
              52 Start watching this issue

              Dates

                Created:
                Updated: