How to disable mail servers in Confluence
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
Confluence administrators may need to disable their mail servers in their cloned environment or production instance. At the moment, it's not possible to disable the mail server from the Confluence Admin Panel.
However, we do have CONFSERVER-41414 - Allow Confluence adminstrators to disable mail servers temporarily as a suggestion. In the mean time you can use following solution.
Solution
Shut Down Confluence
Add
-Datlassian.mail.senddisabled
=
true
according to Confluence System Properties.Start your instance.
ℹ️ To enable the mail servers again, you need to shut down your instance, remove the system argument, and restart it.
ℹ️ This will only disable the sending of automated emails; it will not prevent test emails from being sent manually.
Was this helpful?