SAP Knowledge Base Article - Preview

2576181 - Mail does not send out due to error "PKIX path building failed" when use gmail server


  • Javamail has been configured to use gmail. And smtp.starttls.enable=true has been configured. 
  • There are functionalities like BPM use javamail to send out notification mail. However at runtime, end user does not receive any mail.
  • When check defaultTrace.*.trc log, following error can be seen:

Error sending notification email to recipient <mail address>. Reason: Cannot send e-mail because the e-mail session cannot be retrieved
Caused by: javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is: PKIX path building failed: unable to find valid certification path to requested target
Caused by: unable to find valid certification path to requested target
... 72 more



  • SAP NetWeaver Java system


SAP NetWeaver 7.1 ; SAP NetWeaver 7.2 ; SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP enhancement package 1 for SAP NetWeaver 7.3


TLS, SSL, truststore, starttls, sslcertificate , KBA , BC-JAS-WEB , Web Container, HTTP, JavaMail, Servlets , BC-BMT-BPM-SRV , Process Server , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.