Get the certificate for smtp.gmail.com
openssl s_client -connect smtp.gmail.com:465 | sed -n ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’
Copy the above highlighted into a text file.
Login to Enterprise Manager, got o keystore
Select trust under system and click manage
Click on import
Enter the details as below, paste the earlier copied certificate text and click ok.
Edit Set Domain Environment Script
Modifying the $DOMAIN_HOME/bin/setDomainEnv.sh script, remove the following from EXTRA_JAVA_PROPERTIES
-Djavax.net.ssl.trustStore=${WL_HOME}/server/lib/DemoTrust.jks
Below is edited EXTRA_JAVA_PROPERTIES
EXTRA_JAVA_PROPERTIES=”${EXTRA_JAVA_PROPERTIES} -Dsoa.archives.dir=${SOA_ORACLE_HOME}/soa -Dsoa.oracle.home=${SOA_ORACLE_HOME} -Dsoa.instance.home=${DOMAIN_HOME} -Dtangosol.coherence.log=jdk -Djavax.xml.soap.MessageFactory=oracle.j2ee.ws.saaj.soap.MessageFactoryImpl -Dweblogic.transaction.blocking.commit=true -Dweblogic.transaction.blocking.rollback=true -Doracle.xml.schema/Ignore_Duplicate_Components=true -Doracle.xdkjava.compatibility.version=11.1.1 -Doracle.soa.compatibility.version=11.1.1 -Ddisable-implicit-bean-discovery=true”
export EXTRA_JAVA_PROPERTIES
Restart WebLogic servers.
Configure UMS mail driver
Login to Enterprise Manager, got
Specify sender email. (Format “EMAIL:sender@example.com”)
You can also verify from SOA server log