EBS Workflow Mailer Command Line Java Diagnostic Tests for Office365,GMail,On-Premises Email Servers
 Very often in Workflow service requests, one will be requested to run Workflow Mailer Command Line Java Test to Troubleshoot the Mailer issue

This note explains how to run the Java Test Diagnostics for different types of SMTP/IMAP servers like Cloud Emails Severs/On-Premises Email servers.

SOLUTION

1) Workflow Mailer Command Line Java Diagnostics Test for Office365 servers

a. SMTP

Please run the below Java test and upload the /tmp/smtp1.log and /tmp/smtp2.log file (Replace the parameter value with your instance specific value )

$AFJVAPRG -classpath $AF_CLASSPATH -Dprotocol=smtp \
-Ddbcfile=<complete DBC file path> \
-Dport=587 \
-Dsecurity=STARTTLS \
-Dtruststore=$OA_JRE_TOP/lib/security/cacerts \
-Dserver=smtp.office365.com \
-Daccount=<Username> -Dpassword=<Password> \
-Dconnect_timeout=120 -Ddebug=Y \
-Dlogfile=/tmp/smtp1.log \
-DdebugMailSession=Y oracle.apps.fnd.wf.mailer.Mailer > /tmp/smtp2.log

b.IMAP

Please run the below Java test and upload the spool /tmp/imap1.log and /tmp/imap2.log file (Replace the parameter value with your instance specific value )

$AFJVAPRG -classpath $AF_CLASSPATH -Dprotocol=imap \
-Ddbcfile=<complete DBC file path> \
-Dport=993 \
-Dsecurity=SSL \
-Dtruststore=$OA_JRE_TOP/lib/security/cacerts \
-Dserver=outlook.office365.com \
-Daccount=<Username> -Dpassword=<Password> \
-Dconnect_timeout=120 -Ddebug=Y \
-Dlogfile=/tmp/imap1.log \
-DdebugMailSession=Y oracle.apps.fnd.wf.mailer.Mailer > /tmp/imap2.log

2) Workflow Mailer Command Line Java Diagnostics Test for GMail servers

a. SMTP

Please run the below Java test and upload the /tmp/smtp1.log and /tmp/smtp2.log file (Replace the parameter value with your instance specific value )

$AFJVAPRG -classpath $AF_CLASSPATH -Dprotocol=smtp \
-Ddbcfile=<complete DBC file path> \
-Dport=465 \
-Dsecurity=SSL \
-Dtruststore=$OA_JRE_TOP/lib/security/cacerts \
-Dserver=smtp.gmail.com \
-Daccount=<Username> -Dpassword=<Password> \
-Dconnect_timeout=120 -Ddebug=Y \
-Dlogfile=/tmp/smtp1.log \
-DdebugMailSession=Y oracle.apps.fnd.wf.mailer.Mailer > /tmp/smtp2.log

b.IMAP

Please run the below Java test and upload the spool /tmp/imap1.log and /tmp/imap2.log file (Replace the parameter value with your instance specific value )

$AFJVAPRG -classpath $AF_CLASSPATH -Dprotocol=imap \
-Ddbcfile=<complete DBC file path> \
-Dport=993 \
-Dsecurity=SSL \
-Dtruststore=$OA_JRE_TOP/lib/security/cacerts \
-Dserver=imap.gmail.com \
-Daccount=<Username> -Dpassword=<Password> \
-Dconnect_timeout=120 -Ddebug=Y \
-Dlogfile=/tmp/imap1.log \
-DdebugMailSession=Y oracle.apps.fnd.wf.mailer.Mailer > /tmp/imap2.log

3) Workflow Mailer Command Line Java Diagnostics Test for On-Premises servers

a. SMTP

Please run the below Java test and upload the /tmp/smtp1.log and /tmp/smtp2.log file (Replace the parameter value with your instance specific value )

$AFJVAPRG -classpath $AF_CLASSPATH -Dprotocol=smtp \
-Ddbcfile=<complete DBC file path> \
-Dport=25 \
-Dserver=<SMTP servername> \
-Dconnect_timeout=120 -Ddebug=Y \
-Dlogfile=/tmp/smtp1.log \
-DdebugMailSession=Y oracle.apps.fnd.wf.mailer.Mailer > /tmp/smtp2.log

b. IMAP

Please run the below Java test and upload the spool /tmp/imap1.log and /tmp/imap2.log file (Replace the parameter value with your instance specific value )

$AFJVAPRG -classpath $AF_CLASSPATH -Dprotocol=imap \
-Ddbcfile=<complete DBC file path> \
-Dport=993 \
-Dsecurity=SSL \
-Dtruststore=$OA_JRE_TOP/lib/security/cacerts \
-Dserver=<IMAP Severname> \
-Daccount=<IMAP Username> -Dpassword=<IMAP Password> \
-Dconnect_timeout=120 -Ddebug=Y \
-Dlogfile=/tmp/imap1.log \
-DdebugMailSession=Y oracle.apps.fnd.wf.mailer.Mailer > /tmp/imap2.log

Please refer metalink doc id: (Doc ID 2860542.1)

Recent Posts

Start typing and press Enter to search