SAP Knowledge Base Article - Preview

3159139 - PI/PO - Component-Based Message Alerting: com.sun.mail.util.MailConnectException: Couldn't connect to host


You have configure alerting (Component-Based Message Alerting) in PI/PO system but the consumer job is not working as expected. You have referred to KBA 2381478 - XPI traces for Component Based Message Alerting to collect XPI Inspector trace. You can find following errors in XPI Inspector traces.

An exception occurred.
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
  nested exception is: Connection refused: connect (local port XX to address 0:0:0:0:0:0:0:0, remote port 25 to address XXX)
at com.sun.mail.smtp.SMTPTransport.openServer(
at com.sun.mail.smtp.SMTPTransport.protocolConnect(
at javax.mail.Service.connect(
at javax.mail.Service.connect(
at javax.mail.Service.connect(



  • SAP NetWeaver
  • SAP Process Integration


Alert, CBMA, com.sun.mail.util.MailConnectException, Couldn't connect to host, Connection refused, Process Integration, PI, Process Orchestration, PO, NetWeaver, XI, AEX , KBA , BC-XI-ALR-CBA-JAV , Java , 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.