Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-41414

Allow Confluence adminstrators to disable mail servers temporarily

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • 18
    • 2
    • We collect Confluence 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.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      At the moment, Confluence doesn't have any way to allow administrators to disable mail servers (they can only add/remove them) in the Confluence UI. Instead, a system property needs to be set at the JVM level to disable the mail server.

      Adding this to the Confluence UI would allow Administrators to disable email servers as needed, for example if they wanted to bulk edit pages or spaces.

      Workaround:
      1. Stop Confluence
      2. Add -Datlassian.mail.senddisabled=true to the JVM arguments for Confluence as described in Confluence System Properties
      3. Start Confluence

      This will only disable automated emails from being sent, it will not prevent test emails from being sent manually

          Form Name

            [CONFSERVER-41414] Allow Confluence adminstrators to disable mail servers temporarily

            @Rich Kucera, plugins can leverage SMTP configurations other than the default one. I have a Scriptrunner customization that sends using an alternate SMTP server (with different prefix and sender).

            It's not pretty in the logs, but the workaround I employ is to change my SMTP server hostname to something that doesn't exist.
            Something like mysmtphost-off.mydomain.com

            Peter-Dave Sheehan added a comment - @Rich Kucera, plugins can leverage SMTP configurations other than the default one. I have a Scriptrunner customization that sends using an alternate SMTP server (with different prefix and sender). It's not pretty in the logs, but the workaround I employ is to change my SMTP server hostname to something that doesn't exist. Something like mysmtphost-off.mydomain.com

            During disaster recovery, we are relying on Confluence for collaboration and need to have 100% availability - but need to disable email notifications as requested by SMTP server owner while they work on SMTP service. It's not ideal to remove mail server configuration and seems unnecessary. Would be great to have a toggle like Jira does.

            Rachel Richardson added a comment - During disaster recovery, we are relying on Confluence for collaboration and need to have 100% availability - but need to disable email notifications as requested by SMTP server owner while they work on SMTP service. It's not ideal to remove mail server configuration and seems unnecessary. Would be great to have a toggle like Jira does.

            Rich Kucera added a comment - - edited

            Use case:   I have to migrate 1000 users to a consolidated wiki – I don't to send 1000 emails when I create their accounts in the new server.

            Use case:   I want to install a smtp-sink temporarily but do not want to delete the production mail configuration or be forced to restart the server because it's a java property.

            e.g. with postfix installed:

            smtp-sink -c -d "/home/smtp/Maildir/new/%M." -u smtp 127.0.0.1:2525 10 

             

            Furthermore,   why is it even possible to add multiple SMTP server configuration if it isn't even possible to use them?    This is confusing usability.

             

            Rich Kucera added a comment - - edited Use case:   I have to migrate 1000 users to a consolidated wiki – I don't to send 1000 emails when I create their accounts in the new server. Use case:   I want to install a smtp-sink temporarily but do not want to delete the production mail configuration or be forced to restart the server because it's a java property. e.g. with postfix installed: smtp-sink -c -d "/home/smtp/Maildir/ new /%M." -u smtp 127.0.0.1:2525 10   Furthermore,   why is it even possible to add multiple SMTP server configuration if it isn't even possible to use them?    This is confusing usability.  

            Use case. Ability to disable mail server temporarily is needed when testing the Archiving Plugin. The plugin vendor recommends that you:

            Disable the SMTP server in your test Confluence, so that you will not flood your users' mailboxes with the experimental notification emails.

            Antti Hietala added a comment - Use case. Ability to disable mail server temporarily is needed when testing the Archiving Plugin. The plugin vendor recommends  that you: Disable the SMTP server in your test Confluence, so that you will not flood your users' mailboxes with the experimental notification emails.

              Unassigned Unassigned
              sparsa Saleh Parsa (Inactive)
              Votes:
              112 Vote for this issue
              Watchers:
              52 Start watching this issue

                Created:
                Updated: