java.net.ConnectException: Connection refused Error Connecting The Mail Server From OIM (Doc ID 1676686.1)

Last updated on OCTOBER 10, 2016

Applies to:

Identity Manager - Version 11.1.2.1.0 and later
Information in this document applies to any platform.

Symptoms

Error Connecting the mail server from OIM:  Attempted to configure the OIM server to perform email notification when an OID User is created.

Tried testing if the email notification feature is configured correctly and indeed working -> from Enterprise Manager: SOA-INFRA: Send Notification Test

as shown in 14.4.2 Troubleshooting SOA Email Notification

http://docs.oracle.com/cd/E40329_01/admin.1112/e27149/notification.htm#CACFJEII

It was noted the emails did not get sent and OIM diagnostic logs reported there is a communication connection problem. stacktrace as given below

 

ERROR
-----------------------

ac68565840b4f30b:-3fabd976:1463640552f:-8000-0000000000003281,0] [APP: usermessagingdriver-email] An unexpected exception was caught.[[

javax.mail.MessagingException: Could not connect to SMTP host:emailserver.sampledomain.com, port: 25, response: 554





STEPS
-----------------------
The issue can be reproduced with the following steps:
1. Configure UMS driver properties -enable UMS notification provider
2. Follow the documentation / KM note for the configuration:
How to Configure a UMS Adapter for Email Activation Processes within SOA 11.1.1.6 ( <Document 1531478.1> )

Only Outgoing Mail server properties are set SOA human Workflow is configured to send email and other required properties as given in the documentation
http://docs.oracle.com/cd/E40329_01/admin.1112/e27149/notification.htm#CACJFHCA

3. Test email notification working as shown in: http://docs.oracle.com/cd/E40329_01/admin.1112/e27149/notification.htm#CACJFHCA

Refer to: 14.4.2 Troubleshooting SOA Email Notification


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms