My Oracle Support Banner

"Could not connect to SMTP host: <MAILSERVER_HOSTNAME>, port: 25, response: 554" when Sending Email from ODI Package (Doc ID 2657024.1)

Last updated on APRIL 05, 2021

Applies to:

Oracle Data Integrator - Version and later
Information in this document applies to any platform.


After moving from OCI-Classic to OCI Infrastructure, an Oracle Data Integrator (ODI) package that previously was able to send mail using OdiSendMail is no longer able to send email. The following error is reported:

ODI-1226: Step OdiSendMail 1 fails after 1 attempt(s).
ODI-1241: Oracle Data Integrator tool execution fails.
Caused By: javax.mail.MessagingException: Could not connect to SMTP host: <MAILSERVER_HOSTNAME>, port: 25, response: 554
  at com.sun.mail.smtp.SMTPTransport.openServer(
  at com.sun.mail.smtp.SMTPTransport.protocolConnect(
  at javax.mail.Service.connect(
  at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(
  at oracle.odi.runtime.agent.execution.SessionTask.execIntegratedFunction(
  at oracle.odi.runtime.agent.execution.SessionTask.executeOdiCommand(
  at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(


Any number of changes related to the email request could trigger this error, including a change of hostname/IP or email header information.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.