Tagged: ,

This topic has 0 replies, 1 voice, and was last updated 5 years ago by abarry.

  • Author
    Posts
  • #18991
     abarry
    Participant

    Hello,
    I’m trying to configure email service to enable sending an email to a user on pending request. I’ve already configure UMA provider to enable it. And I followed this tutorial to configure the email service in global services. I used this tutorial to do it : https://forum.forgerock.com/2015/10/e-mail-service-configuration-in-forgerock-openam/
    But I got this error :

    ERROR: MailServerImpl.sendEmail() : Exception in sending Email
    com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 465; timeout -1;
      nested exception is:
            java.net.ConnectException: Connection timed out (Connection timed out)
            at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1984)
            at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:656)
            at javax.mail.Service.connect(Service.java:367)
            at javax.mail.Service.connect(Service.java:226)
            at javax.mail.Service.connect(Service.java:175)
            at javax.mail.Transport.send0(Transport.java:253)
            at javax.mail.Transport.send(Transport.java:124)
            at com.iplanet.am.util.AMSendMail.postMail(AMSendMail.java:242)
            at org.forgerock.openam.services.email.MailServerImpl.sendEmail(MailServerImpl.java:215)
            at org.forgerock.openam.services.email.MailServerImpl.sendHtmlEmail(MailServerImpl.java:176)
            at org.forgerock.openam.services.email.MailServerImpl.sendHtmlEmail(MailServerImpl.java:170)
            at org.forgerock.openam.uma.UmaEmailService.email(UmaEmailService.java:57)
            at org.forgerock.openam.uma.PendingRequestsService$2.apply(PendingRequestsService.java:240)
            at org.forgerock.openam.uma.PendingRequestsService$2.apply(PendingRequestsService.java:232)
            at org.forgerock.util.promise.PromiseImpl$7.handleStateChange(PromiseImpl.java:477)
            at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:559)
            at org.forgerock.util.promise.PromiseImpl.addOrFireListener(PromiseImpl.java:547)
            at org.forgerock.util.promise.PromiseImpl.thenAsync(PromiseImpl.java:469)
            at org.forgerock.util.promise.PromiseImpl.thenAsync(PromiseImpl.java:460)
            at org.forgerock.util.promise.PromiseImpl.thenAsync(PromiseImpl.java:440)
            at org.forgerock.openam.uma.PendingRequestsService.approvePendingRequest(PendingRequestsService.java:219)
            at org.forgerock.openam.uma.rest.PendingRequestResource.approve(PendingRequestResource.java:164)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at org.forgerock.json.resource.AnnotatedMethod.invoke(AnnotatedMethod.java:96)
            at org.forgerock.json.resource.AnnotatedMethod.invoke(AnnotatedMethod.java:65)
            at org.forgerock.json.resource.AnnotatedActionMethods.invoke(AnnotatedActionMethods.java:43)
            at org.forgerock.json.resource.AnnotatedActionMethods.invoke(AnnotatedActionMethods.java:35)
            at org.forgerock.json.resource.AnnotationCollectionInstance.handleAction(AnnotationCollectionInstance.java:71)
            at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:55)
            at org.forgerock.json.resource.Resources$CollectionInstanceIdContextFilter.filterAction(Resources.java:492)
            at org.forgerock.json.resource.FilterChain$Cursor.handleAction(FilterChain.java:53)

    Don’t know why I can’t reach the gmail server. I’ve already allowed less secure apps in the gmail account I’m using.
    Thank you in advance for your help.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?