Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6EBC52009F8 for ; Fri, 3 Jun 2016 20:34:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6D4E8160A49; Fri, 3 Jun 2016 18:34:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 40FC7160A3B for ; Fri, 3 Jun 2016 20:34:04 +0200 (CEST) Received: (qmail 90573 invoked by uid 500); 3 Jun 2016 18:34:03 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 90562 invoked by uid 99); 3 Jun 2016 18:34:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2016 18:34:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 93A86C1637 for ; Fri, 3 Jun 2016 18:34:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.43 X-Spam-Level: * X-Spam-Status: No, score=1.43 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, TVD_PH_BODY_ACCOUNTS_PRE=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id kibUhI--fufX for ; Fri, 3 Jun 2016 18:33:58 +0000 (UTC) Received: from mail-vk0-f53.google.com (mail-vk0-f53.google.com [209.85.213.53]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 1D7A25F3A0 for ; Fri, 3 Jun 2016 18:33:57 +0000 (UTC) Received: by mail-vk0-f53.google.com with SMTP id d64so2321828vkb.0 for ; Fri, 03 Jun 2016 11:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=eDmwq9M2YVEcBKInlThvCaN6d5y7wEFOMTvRg8f9jE0=; b=UM1TEDgSE/hyE8d5DyQqKBZqvI0XzabaT913ZX8aYvoFdSBT/FD54s9dg00l6TxjRC MZPWoaAWCTinKWU/hdaDhB4K6slb5m4eHLtSLkwH5iCUGVeKhoaPJYkldnjWrJVNyZf4 0v6EFLUEW7nGE8mPfvg2EfhcJarPhf7/UgtFHjLgr+GFLmE4r/GPaLZNkk4otpxN7FTA 2OfAkGc5cqNgascoFwL2tznAoPmWQBd+AfaZOS1Jq7JgZSYc4469kioZELcjVigHPy5v ubDJkDBGEPzzUZNy5ubg3iEWwn2CTwe5xeT4OCTM6kDrRgBAl7vVxBcika5zF0haMfDy j+1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=eDmwq9M2YVEcBKInlThvCaN6d5y7wEFOMTvRg8f9jE0=; b=Iqwdwn1GlC+AccePdk03KAYqDS7nsw3Ky0eWr5ZNrcAqT96br9IshELw7yT0VbAQep EWbpW1BUBQR8WB7Tz/YDwiWGhRjXrO6T4qgZRdj5jfM60awbjxiZ1U0g6sB5sdoN8hNc Mqz+jw1hYT6hfNJi6mzwydZJDaN5Bbz3t9kpJZXBeOaLSxL8utBMnyDshQDAMY0AbsLU hO9UmGqiG/EqWhDZYb4gaQH5reKZJ1O7Z8mps5KShi/n+UZAJtSBSimtzvG2RRMoMXHm V/izhqNBxHMZP3yKepb6f66ZLedj5Prof7MqNm1DP0QejHkWKb0krVTFewrxlLthzNBq PbzQ== X-Gm-Message-State: ALyK8tKyy+xuCMC8L8yq90VrwVF5oGMu4w07adzWf5/FMo8I3I8EJSV+PKs1vQ+ONOLzgSiaECRjyDcya6sZwQ== MIME-Version: 1.0 X-Received: by 10.31.2.210 with SMTP id 201mr1980453vkc.58.1464978835622; Fri, 03 Jun 2016 11:33:55 -0700 (PDT) Received: by 10.31.33.199 with HTTP; Fri, 3 Jun 2016 11:33:55 -0700 (PDT) In-Reply-To: References: <5748C270.4060904@nd.edu> <5748CAC7.8010204@nd.edu> <5748D456.5010707@nd.edu> Date: Sat, 4 Jun 2016 00:03:55 +0530 Message-ID: Subject: Re: Failed Sending Account Confirmation Email after Account Creation with local PGA - WSO2 IS set up From: Bikramjeet Singh To: Abhishek Jain Cc: dev Content-Type: multipart/alternative; boundary=001a113dc9cc19d509053463f708 archived-at: Fri, 03 Jun 2016 18:34:06 -0000 --001a113dc9cc19d509053463f708 Content-Type: text/plain; charset=UTF-8 Sure, I will ping in morning Indian time. Thank you so much On Friday 3 June 2016, Abhishek Jain wrote: > Hi Bikramjeet, > We can have a hangout session whenever you are free so that we can have a > look at the issue. > > On Fri, Jun 3, 2016 at 1:01 PM, Bikramjeet Singh < > singh.bikramjeet3@gmail.com > > wrote: > >> Hi Abhishek,I've changed the OAuth client and OAuth secret key and it's >> not the default one. >> Also no I'm not receiving any email in that account. >> >> >> On Friday 3 June 2016, Abhishek Jain > > wrote: >> >>> Hi Bikramjeet, >>> Two things : >>> 1. Your O_Auth client key seems to be the default one. You had mentioned >>> that you had initially set up O_Auth client key and O_Auth client secret. >>> But O_Auth client key seems to me to be the default one. >>> 2. Are you receiving any mail in the email you set up in >>> the org.apache.axis2.transport.mail.MailTransportSender in >>> /repository/conf/axis2/axis2.xml regarding attempted sign-in by a >>> less secure app ? >>> >>> On Fri, Jun 3, 2016 at 1:19 AM, Bikramjeet Singh < >>> singh.bikramjeet3@gmail.com> wrote: >>> >>>> Ok here you go >>>> >>>> On Fri, Jun 3, 2016 at 12:40 AM, Abhishek Jain >>>> wrote: >>>> >>>>> Can you send me your pga_config and the email-admin-config file ? >>>>> >>>>> On Thu, Jun 2, 2016 at 3:09 PM, Abhishek Jain >>>>> wrote: >>>>> >>>>>> Can you send me your pga_config and the email-admin-config file ? >>>>>> >>>>>> On Thu, Jun 2, 2016 at 2:03 PM, Bikramjeet Singh < >>>>>> singh.bikramjeet3@gmail.com> wrote: >>>>>> >>>>>>> Yup did everything mentioned in the link as well as in the thread, >>>>>>> still getting it. >>>>>>> >>>>>>> >>>>>>> On Thursday 2 June 2016, Abhishek Jain >>>>>>> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> Did you configure everything correctly by following the >>>>>>>> instructions mentioned here ? : >>>>>>>> >>>>>>>> >>>>>>>> http://airavata.readthedocs.io/en/latest/Own-WSO2-IS-Configuration/ >>>>>>>> >>>>>>>> There is a section near the bottom of the page above step 4 >>>>>>>> regarding configuring the MailTransportSender. >>>>>>>> Looking at your log, that's the place the error is getting >>>>>>>> generated. >>>>>>>> >>>>>>>> For more details, read the previous mails in the thread which >>>>>>>> should help you to fix your issue. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Jun 2, 2016 at 1:16 PM, Bikramjeet Singh < >>>>>>>> singh.bikramjeet3@gmail.com> wrote: >>>>>>>> >>>>>>>>> Hi abhishek, >>>>>>>>> When I create the account it shows that verification email has >>>>>>>>> been sent by this error shows up in IS log- >>>>>>>>> >>>>>>>>> [IS]ERROR {org.apache.axis2.transport.mail.MailTransportSender} - >>>>>>>>> Error generating mail message >>>>>>>>> org.apache.axis2.AxisFault: Error creating mail message or sending >>>>>>>>> it to the configured server >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:226) >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:505) >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:175) >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112) >>>>>>>>> at >>>>>>>>> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) >>>>>>>>> at >>>>>>>>> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297) >>>>>>>>> at >>>>>>>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) >>>>>>>>> at >>>>>>>>> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:511) >>>>>>>>> at >>>>>>>>> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:488) >>>>>>>>> at >>>>>>>>> org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule.sendEmail(DefaultEmailSendingModule.java:116) >>>>>>>>> at >>>>>>>>> org.wso2.carbon.identity.mgt.mail.AbstractEmailSendingModule.notifyUser(AbstractEmailSendingModule.java:59) >>>>>>>>> at >>>>>>>>> org.wso2.carbon.identity.mgt.NotificationSendingModule.run(NotificationSendingModule.java:33) >>>>>>>>> at >>>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) >>>>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266) >>>>>>>>> at >>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >>>>>>>>> at >>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >>>>>>>>> at java.lang.Thread.run(Thread.java:745) >>>>>>>>> Caused by: javax.mail.AuthenticationFailedException >>>>>>>>> at javax.mail.Service.connect(Service.java:306) >>>>>>>>> at javax.mail.Service.connect(Service.java:156) >>>>>>>>> at javax.mail.Service.connect(Service.java:105) >>>>>>>>> at javax.mail.Transport.send0(Transport.java:168) >>>>>>>>> at javax.mail.Transport.send(Transport.java:98) >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:494) >>>>>>>>> ... 15 more >>>>>>>>> TID: [1] [] [2016-06-02 17:04:46,434] @linfestus.com [1] >>>>>>>>> [IS]ERROR {org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule} - >>>>>>>>> Failed Sending Email >>>>>>>>> org.apache.axis2.AxisFault: Error generating mail message >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:226) >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:184) >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112) >>>>>>>>> at >>>>>>>>> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) >>>>>>>>> at >>>>>>>>> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297) >>>>>>>>> at >>>>>>>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) >>>>>>>>> at >>>>>>>>> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:511) >>>>>>>>> at >>>>>>>>> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:488) >>>>>>>>> at >>>>>>>>> org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule.sendEmail(DefaultEmailSendingModule.java:116) >>>>>>>>> at >>>>>>>>> org.wso2.carbon.identity.mgt.mail.AbstractEmailSendingModule.notifyUser(AbstractEmailSendingModule.java:59) >>>>>>>>> at >>>>>>>>> org.wso2.carbon.identity.mgt.NotificationSendingModule.run(NotificationSendingModule.java:33) >>>>>>>>> at >>>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) >>>>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266) >>>>>>>>> at >>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >>>>>>>>> at >>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >>>>>>>>> at java.lang.Thread.run(Thread.java:745) >>>>>>>>> Caused by: org.apache.axis2.AxisFault: Error creating mail message >>>>>>>>> or sending it to the configured server >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:226) >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:505) >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:175) >>>>>>>>> ... 14 more >>>>>>>>> Caused by: javax.mail.AuthenticationFailedException >>>>>>>>> at javax.mail.Service.connect(Service.java:306) >>>>>>>>> at javax.mail.Service.connect(Service.java:156) >>>>>>>>> at javax.mail.Service.connect(Service.java:105) >>>>>>>>> at javax.mail.Transport.send0(Transport.java:168) >>>>>>>>> at javax.mail.Transport.send(Transport.java:98) >>>>>>>>> at >>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:494) >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Thu, Jun 2, 2016 at 8:27 PM, Abhishek Jain < >>>>>>>>> ajain13@binghamton.edu> wrote: >>>>>>>>> >>>>>>>>>> Hi Bikramjeet, >>>>>>>>>> Can you elaborate on the problem you are facing ? Can you send >>>>>>>>>> your wso2 IS error log ? >>>>>>>>>> >>>>>>>>>> On Thu, Jun 2, 2016 at 7:59 AM, Bikramjeet Singh < >>>>>>>>>> singh.bikramjeet3@gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Hi Abhishek, >>>>>>>>>>> I encountered the same error while sending email while account >>>>>>>>>>> creation, although I had earlier set up wso2 and changed OAuth client and >>>>>>>>>>> OAuth secret too, how were you able to solve it finally? >>>>>>>>>>> >>>>>>>>>>> Thanks >>>>>>>>>>> >>>>>>>>>>> On Sat, May 28, 2016 at 8:35 AM, Abhishek Jain < >>>>>>>>>>> ajain13@binghamton.edu> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hi Jeff, >>>>>>>>>>>> I directed the address to my public folder in my PGA >>>>>>>>>>>> installation. >>>>>>>>>>>> So the link now looks like : >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> http://localhost/airavata-php-gateway/public/confirm-user-registration?confirmation=87348d48-c6c7-44a3-87d2-39ed3bb7e439&userstoredomain=PRIMARY&username=jainabhishek99&tenantdomain=test.bu.com >>>>>>>>>>>> >>>>>>>>>>>> I had to replace https with http which made it go through. But >>>>>>>>>>>> now, when I visit the link, I am getting the following message : >>>>>>>>>>>> >>>>>>>>>>>> "Looks like something went wrong. Please go back and try again >>>>>>>>>>>> or report the problem using help feature." >>>>>>>>>>>> >>>>>>>>>>>> I have attached the screenshot below. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Fri, May 27, 2016 at 10:29 PM, Jeffery Kinnison < >>>>>>>>>>>> Jeffery.D.Kinnison.1@nd.edu> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> No problem, happy to help! >>>>>>>>>>>>> >>>>>>>>>>>>> On Fri, May 27, 2016 at 10:12 PM, Pierce, Marlon < >>>>>>>>>>>>> marpierc@iu.edu> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> +1, thanks, Jeff! >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *From: *Abhishek Jain >>>>>>>>>>>>>> *Reply-To: *"dev@airavata.apache.org" < >>>>>>>>>>>>>> dev@airavata.apache.org> >>>>>>>>>>>>>> *Date: *Friday, May 27, 2016 at 8:35 PM >>>>>>>>>>>>>> *To: *dev >>>>>>>>>>>>>> *Subject: *Re: Failed Sending Account Confirmation Email >>>>>>>>>>>>>> after Account Creation with local PGA - WSO2 IS set up >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> Yes. I think I verified it with my set-up and then added them >>>>>>>>>>>>>> which turned out to be similar. I will double check it. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks a lot for the help ! >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Fri, May 27, 2016 at 8:31 PM, Jeffery Kinnison < >>>>>>>>>>>>>> Jeffery.D.Kinnison.1@nd.edu> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> So those addresses need to be directed to your public folder >>>>>>>>>>>>>> in your PGA install--the actual address will depend on how you have set up >>>>>>>>>>>>>> Apache server, I just sent them as an example. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Fri, May 27, 2016 at 7:32 PM, Abhishek Jain < >>>>>>>>>>>>>> ajain13@binghamton.edu> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> Yes. Google was blocking the sign-in attempt. I allowed less >>>>>>>>>>>>>> secure apps to sign-in. I finally could receive a confirmation link which >>>>>>>>>>>>>> is as follows : >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> https://localhost/airavata-php-gateway/public/confirm-user-registration?confirmation=a507f404-858f-44f2-81d4-c8b2a9a7be3f&userstoredomain=PRIMARY&username=jainabhishek96&tenantdomain=test.bu.com >>>>>>>>>>>>>> >>>>>>>>>>>>>> But, when I visit the link , I get an error stating that the >>>>>>>>>>>>>> site can't be reached. I believe the link is not correct. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Fri, May 27, 2016 at 7:12 PM, Jeff >>>>>>>>>>>>>> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> Has abhi.airavata94@gmail.com received any emails from >>>>>>>>>>>>>> Google about a blocked sign in attempt? If so, try following the >>>>>>>>>>>>>> instructions at >>>>>>>>>>>>>> https://support.google.com/accounts/answer/6010255?hl=en >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On 05/27/2016 07:01 PM, Abhishek Jain wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> This is how my identiy-mgt.properties file looks like : >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Enable authentication to the service using super tenant >>>>>>>>>>>>>> credentials and invoke operations on tenants.* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *UserInfoRecovery.SaaSEnable=false* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Enable email sending function when recovering the account >>>>>>>>>>>>>> and verifying the user creation* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Notification.Sending.Enable=true* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Notification.Expire.Time=7200* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Enable internal email sending module. If "false", email >>>>>>>>>>>>>> sending data would be available to application via webservice. Then >>>>>>>>>>>>>> application can send the email using its own email sender * >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Notification.Sending.Internally.Managed=true* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Enable verification of account creation. When self >>>>>>>>>>>>>> registration is done, user would be verified by sending email >>>>>>>>>>>>>> (confirmation link) to user's email account* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *UserAccount.Verification.Enable=false* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *UserAccount.Recovery.Enable=false* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Whether user can do the verification or not. If value is >>>>>>>>>>>>>> defined for role, Then the email is sent to users that have been assigned >>>>>>>>>>>>>> to this role. Not for the user who is registered.* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *UserAccount.Verification.Role=* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Whether captcha verification is done by identity server or >>>>>>>>>>>>>> application level* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Captcha.Verification.Internally.Managed=false* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Whether temporary passwords are used when creating users >>>>>>>>>>>>>> or recovering accounts.* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Temporary.Password.Enable=false* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Temporary.Password.OneTime=false* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Temporary.Password.Expire.Time=0* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Enable authentication rules other than password check * >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Authentication.Policy.Enable=true* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Enable following checks during authentication. By default >>>>>>>>>>>>>> account lock check is enabled.* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Authentication.Policy.Check.Account.Exist=false * >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Authentication.Policy.Check.Account.Lock=false* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Authentication.Policy.Check.OneTime.Password=false* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Authentication.Policy.Check.Password.Expire=false* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Configuration to build an authentication policy* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Authentication.Policy.Password.Expire.Time=0* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# If account verification is not enabled, following property >>>>>>>>>>>>>> will decide where user must be lock or not after user is created * >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Authentication.Policy.Account.Lock.On.Creation=true* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Authentication.Policy.Account.Lock.Time=0* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Authentication.Policy.Account.Lock.On.Failure=false* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Authentication.Policy.Account.Lock.On.Failure.Max.Attempts=0* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Define pluggable extension points* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Identity.Mgt.Random.Password.Grenerator=org.wso2.carbon.identity.mgt.password.DefaultPasswordGenerator* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *#Identity.Mgt.User.Data.Store=org.wso2.carbon.identity.mgt.store.UserStoreBasedIdentityDataStore* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Identity.Mgt.User.Data.Store=org.wso2.carbon.identity.mgt.store.JDBCIdentityDataStore* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Identity.Mgt.Notification.Sending.Module.1=org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Identity.Mgt.User.Recovery.Data.Store=org.wso2.carbon.identity.mgt.store.RegistryRecoveryDataStore* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Identity.Mgt.Registry.CleanUpPeriod=1440* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *# Define password policy enforce extensions* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *#Password.policy.extensions.1=org.wso2.carbon.identity.mgt.policy.password.DefaultPasswordLengthPolicy* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *#Password.policy.extensions.1.min.length=6* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *#Password.policy.extensions.1.max.length=12* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *#Password.policy.extensions.2=org.wso2.carbon.identity.mgt.policy.password.DefaultPasswordNamePolicy* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *#Password.policy.extensions.3=org.wso2.carbon.identity.mgt.policy.password.DefaultPasswordPatternPolicy* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *#Password.policy.extensions.3.pattern=^((?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&*])).{0,100}$* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *#Password.policy.extensions.3.errorMsg='Password pattern >>>>>>>>>>>>>> policy violated. Password should contain a digit[0-9], a lower case >>>>>>>>>>>>>> letter[a-z], an upper case letter[A-Z], one of !@#$%&* characters'* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Fri, May 27, 2016 at 6:45 PM, Abhishek Jain < >>>>>>>>>>>>>> ajain13@binghamton.edu> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> Hi Jeff, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Yes. I configured MailTransportSender. I configured it as >>>>>>>>>>>>>> follows : >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> class="org.apache.axis2.transport.mail.MailTransportSender"> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> abhi.airavata94@gmail.com >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> name="mail.smtp.user">abhi.airavata94 >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> name="mail.smtp.password">somepassword >>>>>>>>>>>>>> >>>>>>>>>>>>>> smtp.gmail.com >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> 587 >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> name="mail.smtp.starttls.enable">true >>>>>>>>>>>>>> >>>>>>>>>>>>>> true >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> It stills throws the same error. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Fri, May 27, 2016 at 6:34 PM, Abhishek Jain < >>>>>>>>>>>>>> ajain13@binghamton.edu> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> Yes I have configured that. I will verify it once again and >>>>>>>>>>>>>> then come back to you. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Fri, May 27, 2016 at 6:31 PM, Jeff >>>>>>>>>>>>>> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> Hi Abishek, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Did you configure everything like in >>>>>>>>>>>>>> http://airavata.readthedocs.io/en/latest/Own-WSO2-IS-Configuration/ >>>>>>>>>>>>>> ? There is a part near the bottom of the page (right above step 4) about >>>>>>>>>>>>>> configuring the MailTransportSender, which is the part of code throwing the >>>>>>>>>>>>>> error. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Jeff K. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On 05/27/2016 06:14 PM, Abhishek Jain wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> Hi Jeff, >>>>>>>>>>>>>> >>>>>>>>>>>>>> I had forgotten to configure OAuth for the service provider. >>>>>>>>>>>>>> >>>>>>>>>>>>>> I followed the instructions mentioned in the link you just >>>>>>>>>>>>>> shared and configured , and added the client key and secret key in the >>>>>>>>>>>>>> pga_config.php. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Also, I changed the links in the email-admin config.xml as >>>>>>>>>>>>>> you had mentioned. >>>>>>>>>>>>>> >>>>>>>>>>>>>> But it looks like the issue did not resolve. It still fails >>>>>>>>>>>>>> to send an email. >>>>>>>>>>>>>> >>>>>>>>>>>>>> These are how my files look now. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Fri, May 27, 2016 at 5:56 PM, Jeff >>>>>>>>>>>>>> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> It looks like your OAuth client key and OAuth client secret >>>>>>>>>>>>>> in pga_config.php are the defaults--have you configured OAuth for your >>>>>>>>>>>>>> service provider? This page of the docs has the relevant setup >>>>>>>>>>>>>> http://airavata.readthedocs.io/en/latest/WSO2-IS-Configuration/ >>>>>>>>>>>>>> >>>>>>>>>>>>>> Once you have the OAuth service set up, copy the client key >>>>>>>>>>>>>> and secret key that are created into your pga-config.php. >>>>>>>>>>>>>> >>>>>>>>>>>>>> The other thing is that the links in email-admin-config.xml >>>>>>>>>>>>>> should be set to something like >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> https://localhost/airavata-php-gateway/public/reset-password?confirmation= >>>>>>>>>>>>>> {confirmation-code}&userstoredomain={userstore-domain}&username={url:user-name}&tenantdomain={tenant-domain} >>>>>>>>>>>>>> >>>>>>>>>>>>>> for Password Reset and >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> https://localhost/airavata-php-gateway/public/confirm-user-registration?confirmation= >>>>>>>>>>>>>> {confirmation-code}&userstoredomain={userstore-domain}&username={url:user-name}&tenantdomain={tenant-domain} >>>>>>>>>>>>>> >>>>>>>>>>>>>> for Account Confirmation. This points them to the local PGA >>>>>>>>>>>>>> pages that handle password reset and account confirmation, respectively. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Hope this helps! >>>>>>>>>>>>>> Jeff K. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Fri, May 27, 2016 at 5:42 PM, Abhishek Jain < >>>>>>>>>>>>>> ajain13@binghamton.edu> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> Hi All, >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> I have locally set up the PGA and WSO2. They are up and >>>>>>>>>>>>>> running. I added the admin user credentials of the tenant that I created in >>>>>>>>>>>>>> the pga_conf.php file. So now when I try creating an account, I get a >>>>>>>>>>>>>> message that a confirmation link has been sent to the email account, but I >>>>>>>>>>>>>> can see an error in my IS log saying that sending of email has failed which >>>>>>>>>>>>>> is as follows : >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *[2016-05-27 14:19:34,698] @test.bu.com >>>>>>>>>>>>>> [1] [IS] INFO {org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule} >>>>>>>>>>>>>> - Sending user credentials configuration mail to jainabhishek93@gmail.com* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *[2016-05-27 14:19:35,403] @test.bu.com >>>>>>>>>>>>>> [1] [IS]ERROR {org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule} >>>>>>>>>>>>>> - Failed Sending Email* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *org.apache.axis2.AxisFault: Error generating mail message* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:226)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:184)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:511)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:488)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule.sendEmail(DefaultEmailSendingModule.java:116)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.wso2.carbon.identity.mgt.mail.AbstractEmailSendingModule.notifyUser(AbstractEmailSendingModule.java:59)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.wso2.carbon.identity.mgt.NotificationSendingModule.run(NotificationSendingModule.java:33)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at java.util.concurrent.FutureTask.run(FutureTask.java:262)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at java.lang.Thread.run(Thread.java:745)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Caused by: org.apache.axis2.AxisFault: Error creating mail >>>>>>>>>>>>>> message or sending it to the configured server* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:226)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:505)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:175)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *... 14 more* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Caused by: javax.mail.AuthenticationFailedException* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at javax.mail.Service.connect(Service.java:306)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at javax.mail.Service.connect(Service.java:156)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at javax.mail.Service.connect(Service.java:105)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at javax.mail.Transport.send0(Transport.java:168)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at javax.mail.Transport.send(Transport.java:98)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *at >>>>>>>>>>>>>> org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:494)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *... 15 more* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> I am attaching my pga_conf.php file and also, the >>>>>>>>>>>>>> email-admin-config.xml file. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> Also, I am attaching the screenshots of my tenant details and >>>>>>>>>>>>>> service provider details. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> Can you tell me what am I missing out or if I have made a >>>>>>>>>>>>>> mistake in the pga_config.php file ? >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Binghamton University - State Univeristy of New York (SUNY)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Binghamton University - State Univeristy of New York (SUNY)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Binghamton University - State Univeristy of New York (SUNY)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Binghamton University - State Univeristy of New York (SUNY)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Binghamton University - State Univeristy of New York (SUNY)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Binghamton University - State Univeristy of New York (SUNY)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>>>> >>>>>>>>>>>>>> *Binghamton University - State Univeristy of New York (SUNY)* >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Thanks & Regards, >>>>>>>>>>>> Abhishek Jain >>>>>>>>>>>> >>>>>>>>>>>> *Graduate Student* >>>>>>>>>>>> *Department of Computer Science* >>>>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>>>> *Binghamton University - State Univeristy of New York (SUNY)* >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Thanks & Regards, >>>>>>>>>> Abhishek Jain >>>>>>>>>> >>>>>>>>>> *Graduate Student* >>>>>>>>>> *Department of Computer Science* >>>>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>>>> *Binghamton University - State University of New York (SUNY)* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Thanks & Regards, >>>>>>>> Abhishek Jain >>>>>>>> >>>>>>>> *Graduate Student* >>>>>>>> *Department of Computer Science* >>>>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>>>> *Binghamton University - State University of New York (SUNY)* >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Thanks & Regards, >>>>>> Abhishek Jain >>>>>> >>>>>> *Graduate Student* >>>>>> *Department of Computer Science* >>>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>>> *Binghamton University - State University of New York (SUNY)* >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Thanks & Regards, >>>>> Abhishek Jain >>>>> >>>>> *Graduate Student* >>>>> *Department of Computer Science* >>>>> *Thomas J. Watson School of Engineering & Applied Science* >>>>> *Binghamton University - State University of New York (SUNY)* >>>>> >>>>> >>>>> >>>> >>> >>> >>> -- >>> Thanks & Regards, >>> Abhishek Jain >>> >>> *Graduate Student* >>> *Department of Computer Science* >>> *Thomas J. Watson School of Engineering & Applied Science* >>> *Binghamton University - State University of New York (SUNY)* >>> >>> >>> > > > -- > Thanks & Regards, > Abhishek Jain > > *Graduate Student* > *Department of Computer Science* > *Thomas J. Watson School of Engineering & Applied Science* > *Binghamton University - State University of New York (SUNY)* > > > --001a113dc9cc19d509053463f708 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sure, I will ping in morning Indian time.

Thank you so m= uch

On Friday 3 June 2016, Abhishek Jain <ajain13@binghamton.edu> wrote:
Hi Bikramjeet,
We can hav= e a hangout session whenever you are free so that we can have a look at the= issue.

On Fri, Jun 3, 2016 at 1:01 PM, Bikramjeet Singh <singh.bikramjeet3@gmail.com> wro= te:
Hi Abhishek,I've changed the OAut= h client and OAuth secret key and it's not the default one.
Also no= I'm not receiving any email in that account.

On Friday 3 June 2016, Abhishek Jain <ajain13@binghamton.edu> wrote:
<= div dir=3D"ltr">Hi Bikramjeet,
Two things :
1. Your O_Auth cl= ient key seems to be the default one. You had mentioned that you had initia= lly set up O_Auth client key and O_Auth client secret. But O_Auth client ke= y seems to me to be the default one.
2. Are you receiving any mai= l in the email you set up in the=C2=A0org.apache.axis2.transport.mail.MailT= ransportSender in =C2=A0<IS_HOME>/repository/conf/axis2/axis2.xml reg= arding attempted sign-in by a less secure app ?

On Fri, Jun 3, 2016 at 1:19 AM, B= ikramjeet Singh <singh.bikramjeet3@gmail.com>= ; wrote:
Ok here = you go

On Fri, Jun 3, 2016 at 12:40 AM, Abhishek Jain &= lt;ajain13@binghamton.edu> wrote:
Can you send me your pga_config and the email-admin-config file ?

On Thu, Jun 2, 2016 at 3:09 PM, A= bhishek Jain <ajain13@binghamton.edu>= wrote:
Can you send me = your pga_config and the email-admin-config file ?

On Thu, Jun 2, 2016 at 2:03= PM, Bikramjeet Singh <singh.bikramjeet3@gmail.com<= /a>> wrote:
Yup did everything = mentioned in the link as well as in the thread, still getting it.
=

On Thursday 2 June 2016, Abhishek Jain <
ajain13@= binghamton.edu> wrote:
Hi,
Did you configure everything correctly by followin= g the instructions mentioned here ? :


There is a section near the bottom o= f the page above step 4 regarding configuring the MailTransportSender.
<= /div>
Looking at your log, that's the place the error is getting ge= nerated.=C2=A0

For more details, read the previous= mails in the thread which should help you to fix your issue.=C2=A0




On Thu, Jun 2, 2016 at 1:16 PM, Bikramjeet = Singh <singh.bikramjeet3@gmail.com> w= rote:
Hi abhishek,
W= hen I create the account it shows that verification email has been sent by = this error shows up in IS log-

[IS]ERROR {org= .apache.axis2.transport.mail.MailTransportSender} - =C2=A0Error generating = mail message
org.apache.axis2.AxisFault: Error creating mai= l message or sending it to the configured server
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 at org.apache.axis2.transport.base.AbstractTransportSender.ha= ndleException(AbstractTransportSender.java:226)
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 at org.apache.axis2.transport.mail.MailTransportSender.sendMail(= MailTransportSender.java:505)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.= apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSe= nder.java:175)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.ap= ache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportS= ender.java:112)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.axis2.e= ngine.AxisEngine.send(AxisEngine.java:442)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at org.apache.axis2.description.OutOnlyAxisOperationClient.executeIm= pl(OutOnlyAxisOperation.java:297)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at = org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.axis2.client.ServiceClie= nt.fireAndForget(ServiceClient.java:511)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 at org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.ja= va:488)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.wso2.carbon.identity.m= gt.mail.DefaultEmailSendingModule.sendEmail(DefaultEmailSendingModule.java:= 116)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.wso2.carbon.identity.mgt.= mail.AbstractEmailSendingModule.notifyUser(AbstractEmailSendingModule.java:= 59)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.wso2.carbon.identity.mgt.N= otificationSendingModule.run(NotificationSendingModule.java:33)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.Executors$Runnabl= eAdapter.call(Executors.java:511)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at = java.util.concurrent.FutureTask.run(FutureTask.java:266)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.ThreadPoolExecutor.runWorker(T= hreadPoolExecutor.java:1142)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.= util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<= /div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.lang.Thread.run(Thread.java:7= 45)
Caused by: javax.mail.AuthenticationFailedException
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at javax.mail.Service.connect(Service.ja= va:306)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at javax.mail.Service.connect= (Service.java:156)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at javax.mail.Serv= ice.connect(Service.java:105)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java= x.mail.Transport.send0(Transport.java:168)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at javax.mail.Transport.send(Transport.java:98)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 at org.apache.axis2.transport.mail.MailTransportSender.se= ndMail(MailTransportSender.java:494)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = ... 15 more
TID: [1] [] [2016-06-02 17:04:46,434] @linfestus.com [1] [IS]ERROR= {org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule} - =C2=A0Fail= ed Sending Email
org.apache.axis2.AxisFault: Error generati= ng mail message
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.axis2.t= ransport.base.AbstractTransportSender.handleException(AbstractTransportSend= er.java:226)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.axis2.tran= sport.mail.MailTransportSender.sendMessage(MailTransportSender.java:184)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.axis2.transport.base.Abst= ractTransportSender.invoke(AbstractTransportSender.java:112)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.axis2.engine.AxisEngine.send(AxisEng= ine.java:442)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.axis2.des= cription.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:2= 97)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.axis2.client.Operat= ionClient.execute(OperationClient.java:149)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient= .java:511)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.axis2.client= .ServiceClient.fireAndForget(ServiceClient.java:488)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 at org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingM= odule.sendEmail(DefaultEmailSendingModule.java:116)
=C2=A0 =C2=A0= =C2=A0 =C2=A0 at org.wso2.carbon.identity.mgt.mail.AbstractEmailSendingMod= ule.notifyUser(AbstractEmailSendingModule.java:59)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 at org.wso2.carbon.identity.mgt.NotificationSendingModule.run= (NotificationSendingModule.java:33)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.jav= a:511)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.Future= Task.run(FutureTask.java:266)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java= .util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.ThreadPoolEx= ecutor$Worker.run(ThreadPoolExecutor.java:617)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 at java.lang.Thread.run(Thread.java:745)
Caused= by: org.apache.axis2.AxisFault: Error creating mail message or sending it = to the configured server
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apach= e.axis2.transport.base.AbstractTransportSender.handleException(AbstractTran= sportSender.java:226)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.a= xis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:5= 05)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.axis2.transport.mai= l.MailTransportSender.sendMessage(MailTransportSender.java:175)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 ... 14 more
Caused by: javax.mail.Aut= henticationFailedException
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at javax.m= ail.Service.connect(Service.java:306)
=C2=A0 =C2=A0 =C2=A0 =C2=A0= at javax.mail.Service.connect(Service.java:156)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 at javax.mail.Service.connect(Service.java:105)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 at javax.mail.Transport.send0(Transport.java:168)<= /div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at javax.mail.Transport.send(Transpor= t.java:98)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.axis2.transp= ort.mail.MailTransportSender.sendMail(MailTransportSender.java:494)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0

On Thu, Jun 2, 2016 at 8:27 PM, Abhishek Jain <ajain13@binghamton.edu> wrote:
Hi Bikramjeet,
Can you elabora= te on the problem you are facing ? Can you send your wso2 IS error log ?

On Thu, Jun 2, 2016 at 7:59 AM, Bikramjeet Singh <singh.bikramjeet3@gmail.com> wrote:
Hi Abhishek,=C2=A0
I encountered the same er= ror while sending email while account creation, although I had earlier set = up wso2 and changed OAuth client and OAuth secret too, how were you able to= solve it finally?

Thanks

On Sat, May 28, 2016= at 8:35 AM, Abhishek Jain <ajain13@binghamton.edu<= /a>> wrote:

I had to replace https with h= ttp which made it go through. But now, when I visit the link, I am getting = the following message :=C2=A0

"Looks like som= ething went wrong. Please go back and try again or report the problem using= help feature."

I have attached the screensho= t below.

On Fri, May 27, 2016 at 10:29 PM, Jeffery Kinni= son <Jeffery.D.Kinnison.1@nd.edu> wro= te:
No problem, happy to= help!

On Fri, May 27, 2016 at 10:12 PM, Pierce, Marlon <marpierc@iu.edu> wrote:

+1, thanks, Jeff!

=C2=A0

F= rom: Abhishek Jain <aj= ain13@binghamton.edu>
Reply-To: "dev@airavata.apache.org" <dev@aira= vata.apache.org>
Date: Friday, May 27, 2016 at 8:35 PM
To: dev <dev@airavata.apache.org>
Subject: Re: Failed Sending Account Confirmation Email after Account= Creation with local PGA - WSO2 IS set up

=C2=A0

Yes. I think I verified it with my set-up and then a= dded them which turned out to be similar. I will double check it.

Thanks a lot for the help !

=C2=A0

On Fri, May 27, 2016 at 8:31 PM, Jeffery Kinnison &l= t;Jeffery.D.Kinnison.1@nd.edu> wrote:

So those addresses need to be directed to your publi= c folder in your PGA install--the actual address will depend on how you hav= e set up Apache server, I just sent them as an example.

=C2=A0

On Fri, May 27, 2016 at 7:32 PM, Abhishek Jain <<= a>ajain13@binghamton.edu> wrote:

Yes. Google was blocking the sign-in attempt. I allo= wed less secure apps to sign-in. I finally could receive a confirmation lin= k which is as follows :

=C2=A0

= https://localhost/airavata-php-gateway/publ= ic/confirm-user-registration?confirmation=3Da507f404-858f-44f2-81d4-c8b2a9a= 7be3f&userstoredomain=3DPRIMARY&username=3Djainabhishek96&tenan= tdomain=3Dtest.bu.com

But, when I visit the link , I get an error stating = that the site can't be reached. I believe the link is not correct.

=C2=A0

On Fri, May 27, 2016 at 7:12 PM, Jeff <jkinnis= o@nd.edu> wrote:

Has abhi.airavata94@gmail.com received any emails from Google about a block= ed sign in attempt? If so, try following the instructions at https://support.google.com/accounts/answer/6010255?hl=3Den



On 05/27/2016 07:01 PM, Abhishek Jain wrote:<= u>

This is how my identiy-mgt.properties file looks lik= e :

=C2=A0

# Enable authentication to the service using supe= r tenant credentials and invoke operations on tenants.

=C2=A0

UserInfoRecovery.SaaSEnable=3Dfalse=

=C2=A0

# Enable email sending function when recovering t= he account and verifying the user creation

=C2=A0

Notification.Sending.Enable=3Dtrue<= /u>

Notification.Expire.Time=3D7200=

=C2=A0

# Enable internal email sending module. If "= false", email sending data would be available to application via webse= rvice. Then application can send the email using its own email sender=C2=A0=

=C2=A0

Notification.Sending.Internally.Managed=3Dtrue

=C2=A0

# Enable verification of account creation. When s= elf registration is done, =C2=A0user would be verified by sending email (co= nfirmation link) to user's email account

=C2=A0

UserAccount.Verification.Enable=3Dfalse

=C2=A0

UserAccount.Recovery.Enable=3Dfalse=

=C2=A0

=C2=A0

# Whether user can do the verification or not. If= value is defined for role, Then the email is sent to users that have been = assigned to this role. Not for the user who is registered.

=C2=A0

UserAccount.Verification.Role=3D

=C2=A0

# Whether captcha verification is done by identit= y server or application level

=C2=A0

Captcha.Verification.Internally.Managed=3Dfalse

=C2=A0

# Whether temporary passwords are used when creat= ing users or recovering accounts.

=C2=A0

Temporary.Password.Enable=3Dfalse

Temporary.Password.OneTime=3Dfalse<= /u>

Temporary.Password.Expire.Time=3D0<= /u>

=C2=A0

# Enable authentication rules other than password= check=C2=A0

=C2=A0

Authentication.Policy.Enable=3Dtrue=

=C2=A0

# Enable following checks during authentication.= =C2=A0 By default account lock check is enabled.

=C2=A0

Authentication.Policy.Check.Account.Exist=3Dfalse= =C2=A0

Authentication.Policy.Check.Account.Lock=3Dfalse<= /b>

Authentication.Policy.Check.OneTime.Password=3Dfa= lse

Authentication.Policy.Check.Password.Expire=3Dfal= se

=C2=A0

# Configuration to build an authentication policy=

=C2=A0

Authentication.Policy.Password.Expire.Time=3D0

# If account verification is not enabled, followi= ng property will decide where user must be lock or not after user is create= d=C2=A0

Authentication.Policy.Account.Lock.On.Creation=3D= true

Authentication.Policy.Account.Lock.Time=3D0

Authentication.Policy.Account.Lock.On.Failure=3Df= alse

Authentication.Policy.Account.Lock.On.Failure.Max= .Attempts=3D0

=C2=A0

# Define pluggable extension points=

=C2=A0

Identity.Mgt.Random.Password.Grenerator=3Dorg.wso= 2.carbon.identity.mgt.password.DefaultPasswordGenerator

#Identity.Mgt.User.Data.Store=3Dorg.wso2.carbon.i= dentity.mgt.store.UserStoreBasedIdentityDataStore

Identity.Mgt.User.Data.Store=3Dorg.wso2.carbon.id= entity.mgt.store.JDBCIdentityDataStore

Identity.Mgt.Notification.Sending.Module.1=3Dorg.= wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule

Identity.Mgt.User.Recovery.Data.Store=3Dorg.wso2.= carbon.identity.mgt.store.RegistryRecoveryDataStore

Identity.Mgt.Registry.CleanUpPeriod=3D1440=

=C2=A0

=C2=A0

# Define password policy enforce extensions

=C2=A0

#Password.policy.extensions.1=3Dorg.wso2.carbon.i= dentity.mgt.policy.password.DefaultPasswordLengthPolicy

#Password.policy.extensions.1.min.length=3D6<= u>

#Password.policy.extensions.1.max.length=3D12=

#Password.policy.extensions.2=3Dorg.wso2.carbon.i= dentity.mgt.policy.password.DefaultPasswordNamePolicy

#Password.policy.extensions.3=3Dorg.wso2.carbon.i= dentity.mgt.policy.password.DefaultPasswordPatternPolicy<= /p>

#Password.policy.extensions.3.pattern=3D^((?=3D.*= \\d)(?=3D.*[a-z])(?=3D.*[A-Z])(?=3D.*[!@#$%&*])).{0,100}$=

#Password.policy.extensions.3.errorMsg=3D'Pas= sword pattern policy violated. Password should contain a digit[0-9], a lowe= r case letter[a-z], an upper case letter[A-Z], one of !@#$%&* character= s'

=C2=A0

On Fri, May 27, 2016 at 6:45 PM, Abhishek Jain <<= a>ajain13@binghamton.edu> wrote:

Hi Jeff,

Yes. I configured MailTransportSender. I configured = it as follows :

=C2=A0

=C2=A0<transportSender name=3D"mailto"<= u>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0class=3D"org.apache.axis2.transport.mail.MailT= ransportSender">

=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name=3D&qu= ot;mail.smtp.from">abhi.airavata94@gmail.com</parameter&g= t;

=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name=3D&qu= ot;mail.smtp.user">abhi.airavata94</parameter><= /p>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name=3D&qu= ot;mail.smtp.password">somepassword</parameter>=

=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name=3D&qu= ot;mail.smtp.host">smtp.gmail.com</parameter>

=C2=A0

=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name=3D&qu= ot;mail.smtp.port">587</parameter>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name=3D&qu= ot;mail.smtp.starttls.enable">true</parameter><= /p>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name=3D&qu= ot;mail.smtp.auth">true</parameter>

=C2=A0 =C2=A0 </transportSender>=

=C2=A0

It stills throws the same error.

=C2=A0

=C2=A0

=C2=A0

=C2=A0

=C2=A0

On Fri, May 27, 2016 at 6:34 PM, Abhishek Jain <<= a>ajain13@binghamton.edu> wrote:

Yes I have configured that. I will verify it once ag= ain and then come back to you.

=C2=A0

On Fri, May 27, 2016 at 6:31 PM, Jeff <jkinnis= o@nd.edu> wrote:

Hi Abishek,

Did you configure everything like in http://airavata.readthedocs.io/en/latest/Own-WSO2-IS-Configuration/ ? T= here is a part near the bottom of the page (right above step 4) about confi= guring the MailTransportSender, which is the part of code throwing the erro= r.

Jeff K.

=C2=A0<= /p>

On 05/27/2016 06:14 PM, Abhishek Jain wrote:<= u>

Hi Jeff,

I had forgotten to configure OAuth for the service p= rovider.

I followed the instructions mentioned in the link yo= u just shared and configured , and added the client key and =C2=A0secret ke= y in the pga_config.php.

Also, I changed the links in the email-admin config.= xml as you had mentioned.=C2=A0

But it looks like the issue did not resolve. It stil= l fails to send an email.

These are how my files look now.=C2=A0=

=C2=A0

On Fri, May 27, 2016 at 5:56 PM, Jeff <jkinnis= o@nd.edu> wrote:

It looks like your OA= uth client key and OAuth client secret in pga_config.php are the defaults--= have you configured OAuth for your service provider? This page of the docs = has the relevant setup http://airavata.readthedocs.io/en/latest/WSO2-IS-Configuration/<= u>

Once you have the OAu= th service set up, copy the client key and secret key that are created into= your pga-config.php.

The other thing is th= at the links in email-admin-config.xml should be set to something like

https://localhost/airavata-php-gateway/publ= ic/reset-password?confirmation=3D{confirmation-code}&amp;userstored= omain=3D{userstore-domain}&amp;username=3D{url:user-name}&amp;tenan= tdomain=3D{tenant-domain}

for Password Reset and

https://localhost/airavata-php-g= ateway/public/confirm-user-registration?confirmation=3D{confirmation-co= de}&amp;userstoredomain=3D{userstore-domain}&amp;username=3D{url:us= er-name}&amp;tenantdomain=3D{tenant-domain}

for Account Confirmation. This points them to the local PGA pages that hand= le password reset and account confirmation, respectively.

Hope this helps!
Jeff K.

=C2=A0<= /p>

On Fri, May 27, 2016 at 5:42 PM, Abhishek Jain <<= a>ajain13@binghamton.edu> wrote:


Hi All,

=C2=A0

I have locally set up the PGA and WSO2. They are up = and running. I added the admin user credentials of the tenant that I create= d in the pga_conf.php file. So now when I try creating an account, I get a = message that a confirmation link has been sent to the email account, but I can see an error in my IS log saying= that sending of email has failed which is as follows :

=C2=A0

[2016-05-27 14:19:34,698] @test.bu.com [1] [IS] INFO {org.wso2.carbon.i= dentity.mgt.mail.DefaultEmailSendingModule} - =C2=A0Sending user credential= s configuration mail to jainabhishek93@gmail.com

[2016-05-27 14:19:35,403] @test.bu.com [1] [IS]ERROR {org.wso2.carbon.i= dentity.mgt.mail.DefaultEmailSendingModule} - =C2=A0Failed Sending Email

org.apache.axis2.AxisFault: Error generating mail= message

at org.apache.axis2.transport.base.AbstractTransp= ortSender.handleException(AbstractTransportSender.java:226)

at org.apache.axis2.transport.mail.MailTransportS= ender.sendMessage(MailTransportSender.java:184)

at org.apache.axis2.transport.base.AbstractTransp= ortSender.invoke(AbstractTransportSender.java:112)

at org.apache.axis2.engine.AxisEngine.send(AxisEn= gine.java:442)

at org.apache.axis2.description.OutOnlyAxisOperat= ionClient.executeImpl(OutOnlyAxisOperation.java:297)

at org.apache.axis2.client.OperationClient.execut= e(OperationClient.java:149)

at org.apache.axis2.client.ServiceClient.fireAndF= orget(ServiceClient.java:511)

at org.apache.axis2.client.ServiceClient.fireAndF= orget(ServiceClient.java:488)

at org.wso2.carbon.identity.mgt.mail.DefaultEmail= SendingModule.sendEmail(DefaultEmailSendingModule.java:116)

at org.wso2.carbon.identity.mgt.mail.AbstractEmai= lSendingModule.notifyUser(AbstractEmailSendingModule.java:59)=

at org.wso2.carbon.identity.mgt.NotificationSendi= ngModule.run(NotificationSendingModule.java:33)

at java.util.concurrent.Executors$RunnableAdapter= .call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask= .java:262)

at java.util.concurrent.ThreadPoolExecutor.runWor= ker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker= .run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.axis2.AxisFault: Error crea= ting mail message or sending it to the configured server<= /p>

at org.apache.axis2.transport.base.AbstractTransp= ortSender.handleException(AbstractTransportSender.java:226)

at org.apache.axis2.transport.mail.MailTransportS= ender.sendMail(MailTransportSender.java:505)

at org.apache.axis2.transport.mail.MailTransportS= ender.sendMessage(MailTransportSender.java:175)

... 14 more

Caused by: javax.mail.AuthenticationFailedExcepti= on

at javax.mail.Service.connect(Service.java:306)

at javax.mail.Service.connect(Service.java:156)

at javax.mail.Service.connect(Service.java:105)

at javax.mail.Transport.send0(Transport.java:168)=

at javax.mail.Transport.send(Transport.java:98)

at org.apache.axis2.transport.mail.MailTransportS= ender.sendMail(MailTransportSender.java:494)

... 15 more

=C2=A0

=C2=A0

I am attaching my pga_conf.php file and also, the em= ail-admin-config.xml file.

=C2=A0

Also, I am attaching the screenshots of my tenant de= tails and service provider details.=C2=A0

=C2=A0

Can you tell me what am I missing out or if I have m= ade a mistake in the pga_config.php file ?

=C2=A0

=C2=A0

--

Thanks & Regards, =

Abhis= hek Jain

=C2=A0

Gr= aduate Student

De= partment of Computer Science

Th= omas J. Watson School of Engineering & Applied Science

Bi= nghamton University - State Univeristy of New York (SUNY)

=C2=A0

=C2=A0

=C2=A0



=C2=A0

--

Thanks & Regards,

Abhishek Jain

=C2=A0

Graduate Student=

Department of Co= mputer Science

Thomas J. Watson= School of Engineering & Applied Science

Binghamton Unive= rsity - State Univeristy of New York (SUNY)

=C2=A0

=C2=A0

=C2=A0



=C2=A0

--

Thanks & Regards,

Abhishek Jain

=C2=A0

Graduate Student=

Department of Co= mputer Science

Thomas J. Watson= School of Engineering & Applied Science

Binghamton Unive= rsity - State Univeristy of New York (SUNY)

=C2=A0

=C2=A0



=C2=A0

--

Thanks & Regards,

Abhishek Jain

=C2=A0

Graduate Student=

Department of Co= mputer Science

Thomas J. Watson= School of Engineering & Applied Science

Binghamton Unive= rsity - State Univeristy of New York (SUNY)

=C2=A0

=C2=A0



=C2=A0

--

Thanks & Regards,

Abhishek Jain

=C2=A0

Graduate Student=

Department of Co= mputer Science

Thomas J. Watson= School of Engineering & Applied Science

Binghamton Unive= rsity - State Univeristy of New York (SUNY)

=C2=A0

=C2=A0

=C2=A0



=C2=A0

--

Thanks & Regards,

Abhishek Jain

=C2=A0

Graduate Student=

Department of Co= mputer Science

Thomas J. Watson= School of Engineering & Applied Science

Binghamton Unive= rsity - State Univeristy of New York (SUNY)

=C2=A0

=C2=A0

=C2=A0



=C2=A0

--

Thanks & Regards,

Abhishek Jain

=C2=A0

Graduate Student=

Department of Co= mputer Science

Thomas J. Watson= School of Engineering & Applied Science

Binghamton Unive= rsity - State Univeristy of New York (SUNY)

=C2=A0

=C2=A0





--
=
Thanks & Regards,
Abhishek Jain

Graduate Student
Department of Computer Science
Thomas J. Watson School of Engineering & Applied Science
Binghamton University - State Univeristy = of New York (SUNY)






--
=
<= div dir=3D"ltr">
Thanks & Regards,
Abhishek Jain=

Gradu= ate Student
Department of Computer= Science
Thomas J. Watson School o= f Engineering & Applied Science
= Binghamton University - State University of New York (S= UNY)






--
=
Thanks &am= p; Regards,
Abhishek Jain

Graduate Student
Department of Computer Science
Thomas J. Watson School of Engineering & A= pplied Science
Binghamton Universi= ty - State University of New York (SUNY)





--
=
Thanks &am= p; Regards,
Abhishek Jain

Graduate Student
Department of Computer Science
Thomas J. Watson School of Engineering & A= pplied Science
Binghamton Universi= ty - State University of New York (SUNY)





--
=
Thanks &am= p; Regards,
Abhishek Jain

Graduate Student
Department of Computer Science
Thomas J. Watson School of Engineering & A= pplied Science
Binghamton Universi= ty - State University of New York (SUNY)






--
=
Thanks &am= p; Regards,
Abhishek Jain

Graduate Student
Department of Computer Science
Thomas J. Watson School of Engineering & A= pplied Science
Binghamton Universi= ty - State University of New York (SUNY)





--
Thanks & Regards,<= div>Abhishek Jain

Graduate Student
<= font size=3D"2">Department of Computer Science
Thomas J. Watson School of Engineering & Applied Scienc= e
Binghamton University - State Un= iversity of New York (SUNY)


<= /div>
--001a113dc9cc19d509053463f708--