Monday, August 12, 2013

Use Gmail's SMTP and IMAP with Workflow Notification Mailer

To configure Gmail's SMTP there are some prerequisites.

1. GMAIL SMTP require authentication. EBS started supporting authentication based smtp servers from R12.1.3 onwards.

    Please check below Note:

   Oracle Workflow Release Notes for Release 12.1.3(Doc Id 1095146.1)

    We may get error "Autentication failed" while sending notification. To solve this error we need to apply  patch 16559330 on top of R12.1.3

    Please check below Note:

    Workflow Notification Mailer Is Not Sending Email Notifications Or Goes Down When Authentication is Enabled (Doc ID 1528345.1)

2. Get Gmail SMTP SSL certificate.

Connect to smtp.gmail.com:465

openssl s_client -connect smtp.gmail.com:465

Copy and save the lines between "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----" into a file, say, gmail.cer

3. Import certificate in Java keystore.
   
  •   Install the SSL certificate into the default JRE location or any other location using below command
  • Installing into a dfeault JRE location in EBS instance
        # keytool -import -trustcacerts -keystore $AF_JRE_TOP/lib/security/cacerts  -storepass changeit -alias gmail-lnx_chainnedcert -file gmail.cer

           Answer Yes when it ask "Trust this certificate? [no]:  yes"

4. Create gmail account.

5. Create PROCESSED and DISCARD folders (Labels in gmail) in gmail account.

6. Inbox of gmail account must be empty.

7. Configure Workflow notification mailer through OAM.

   

    





No comments:

Post a Comment