Sending Test Mail Doesn't Work or Causes Services that Depends on it to Fail

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

Symptoms

The following appears in the atlassian-confluence.log:

1 2 2013-03-26 11:11:24,745 WARN [TP-Processor12] [atlassian.upm.pac.PacClientImpl] unknown Error when querying application info from MPAC: com.atlassian.marketplace.client.MpacException: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated -- referer: http://confluence.atlassian.com/authenticate.action?destination=/admin/mail/dosendtestemail.action | url: /admin/mail/dosendtestemail.action | userName: admin

Cause

The contents of the server.xml are not formatted accordingly. Usually How do I configure Confluence to use Gmail as the mail server? has the right source for setting up the resource.

Double check for the contents to be in the correct place and tags, such as the example below:

1 2 3 4 /* <Resource name="mail/Session" ... stuff here ... /> */
  • /* and */ do not work on xml, you need to use proper escaping such as <!-- while inside here all will be escaped and close with -->

Also could occur something similar to this, while the <Resource ... is out of <Context ...

1 2 3 4 5 6 7 8 9 10 11 12 13 14 <Engine name="Standalone" defaultHost="localhost" debug="0"> <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false"> <Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"> <!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties --> </Context> <Resource name="mail/Session" ... mail stuff here ... /> <Manager pathname="" /> </Host> </Engine>

Resolution

As the cause is for malformed or problematic content inside the server.xml file, please double check for anything out of place.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.