A Note About SSL
Certificates
In general, SSL certificates are acquired from certificate authorities. The implementation of certificates falls in the province of the email server and application server. Maximo does not directly (or even indirectly) handle or access SSL certificates. The request for an SSL enabled connection is via a property issued to the JavaMail API. Certificate handling occurs between the application server's JavaMail API and trust store and the email server.
Importing an SSL Certificate into Websphere
In this case we'll be using GMail over SSL. Websphere provides a handy feature for pulling the SSL certificate from the email server.
In general, SSL certificates are acquired from certificate authorities. The implementation of certificates falls in the province of the email server and application server. Maximo does not directly (or even indirectly) handle or access SSL certificates. The request for an SSL enabled connection is via a property issued to the JavaMail API. Certificate handling occurs between the application server's JavaMail API and trust store and the email server.
Importing an SSL Certificate into Websphere
In this case we'll be using GMail over SSL. Websphere provides a handy feature for pulling the SSL certificate from the email server.
·
Log into the
Websphere console
·
Navigate to Security
> SSL certificate and key management > under Related Items select Key stores and
certificates > CellDefaultTrustStore
> under Additional Properties select Signer
certificates
·
Click on Retrieve
from
port
Host: smtp.gmail.comPort: 465
Alias: gmail (or desired alias)
Note: GMail uses the same certificate for both SMTP and
POP3/IMAP.
·
Click Retrieve signer
information, OK and then Save the certificate
·
You may need to
completely restart your Websphere application server
·
After the import, the
GMail signer certificate will appear as follows:
=>In the same way import a certificate
for pop.gmail.com
With the following values:
Host: pop.gmail.com
Port: 995
Alias: popgmail (or desired alias)
Port: 995
Alias: popgmail (or desired alias)
Stay
tuned for Part II.
Email Listener
Communications via GMail - Part II: Configuring SMTP Over SSL
System
Properties
=>Below are the properties that will be used to connect to GMail via SMTP. Note that the
property 'mail.smtp.ssl.enable' has been added to allow authentication via SMTP over SSL.
mail.smtp.auth =true
mail.smtp.port=465
mxe.smtp.password=xyz
mxe.smtp.user=chava.nagaraju@gmail.com
mail.smtp.host=smtp.gmail.com
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
mail.smtp.ssl.enable=true
Enabling the properties may require a full restart of the
Websphere server instance hosting IBM Maximo 7.5.0.3.
Note: In this article only two GMail addresses will be used
(servreq.user and servreq.listener). The account servreq.listener will be
used to authenticate with the SMTP server. Your IBM Maximo system may
have separate accounts for SMTP authentication and the listener.
Testing the SMTP Connection
If mail.debug is enabled, the complete communication stream
between the JavaMail API and the email server will be visible in the SystemOut
log. In this snippet the SMTP connection over SSL is apparent:
<snip>
O DEBUG SMTP: useEhlo true, useAuth true
O DEBUG SMTP: useEhlo true, useAuth true
O DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL true
O 220 mx.google.com ESMTP c17sm12626936vdj.11
O DEBUG SMTP: connected to host "smtp.gmail.com", port: 465
O DEBUG SMTP: useEhlo true, useAuth true
O DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL true
O 220 mx.google.com ESMTP c17sm12626936vdj.11
O DEBUG SMTP: connected to host "smtp.gmail.com", port: 465
</snip>
User PETE has received his new password via GMail.
Stay tuned for
Part III.
Email Listener
Communications via GMail - Part III: Sending Service Requests
Create an Email Listener
Using the out-of-the-box workflow process (LSNRBP), an Email Listener is created and activated which connects to the GMail pop server using pop3s.
Using the out-of-the-box workflow process (LSNRBP), an Email Listener is created and activated which connects to the GMail pop server using pop3s.
Our Service Request user is having printer difficulties so he drafts an email describing the issue using the GMail web client and sends it to the Maximo Email Listener's address.
The SR acknowledgement is received from Maximo a few moments
later.
https://www.ibm.com/developerworks/mydeveloperworks/blogs/a9ba1efe-b731-4317-9724-a181d6155e3a/resource/BLOGS_UPLOADED_IMAGES/III-image2-you've-got-gmail.png
The resolver logs into Maximo and views their new Service Request which
was created from an email received via GMail over SSL.
Thank you...
Hello Naga,
ReplyDeleteWe have configured GMAIL as email listener, but we are facing one issue on a very frequent basis.
GMAIL Server's IP address keeps changing.
so how can we avoid this?
Since whenever IP changes, needs to import CERTIFICATES again and again.
Could you please help
Hello,
ReplyDeleteI think that i gonna help a little. when you import the certificate in Websphere, u're using the hostname method. so i think that's okay if the the targeting ip is dynamic.
Hello mate,
ReplyDeletei'm curious, where did you find the mail.smtp.port property?
It's not in standard out of the box Maximo, as far as i can see.
Regards,
Pierre
Google Inc. has been the wellspring of Internet, PC programming and a few different items everywhere throughout the world. Gmail as a webmail customer has a scope of a few inbuilt administrations. https://robetbuckner.wordpress.com/2016/07/08/get-your-gmail-account-help-contact-via-phone-number-1-866-688-6581-toll-free/
ReplyDeleteHi,
ReplyDeleteCan someone please help me!
Not able to send an email from any maximo user. However it is possible to send when send from: mxe.adminEmail. SMTP user and passwords are configured.
Thanks,
Iftikhar
Such a nice blog Thanks for sharing information IMAP Gmail is not responding.
ReplyDeleteLooking great and it is very helpful content you can read my content here IMAP Gmail is not responding.
ReplyDeleteIf you are facing problem for bellsouth email login from chrome then visits our website or call us our toll free number +1(866)213-3111
ReplyDeleteFor more information visit us: http://bit.ly/2EZQpUE
One can easily fix the given issue on Gmail for that the user should, first of all, check the extensions the user should wait for a while so that the error subsides itself also the user should check the mailbox and should get it cleared if it is full, also the cache and cookies should be cleared from the browser. If needed then for more information the user should ask the help of the experts they are available at +44-800-368-9067.
ReplyDeleteGmail Helpline Number UK