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 51DDA200AF6 for ; Sat, 28 May 2016 01:01:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 50231160A37; Fri, 27 May 2016 23:01:45 +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 A9459160A12 for ; Sat, 28 May 2016 01:01:43 +0200 (CEST) Received: (qmail 61872 invoked by uid 500); 27 May 2016 23:01:42 -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 61862 invoked by uid 99); 27 May 2016 23:01:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2016 23:01:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2F8E6C0D1F for ; Fri, 27 May 2016 23:01:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.298 X-Spam-Level: * X-Spam-Status: No, score=1.298 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=binghamton-edu.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id CaMNPO9kcVl3 for ; Fri, 27 May 2016 23:01:36 +0000 (UTC) Received: from mail-qg0-f54.google.com (mail-qg0-f54.google.com [209.85.192.54]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A976F5F201 for ; Fri, 27 May 2016 23:01:35 +0000 (UTC) Received: by mail-qg0-f54.google.com with SMTP id q32so57359563qgq.3 for ; Fri, 27 May 2016 16:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=binghamton-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=wF/DdZbRfYbG9X5wQZcxj2i9FV4XpEAnwv7N+rfiA+0=; b=ASidz/YxAtYkRe4+drN6phaKaaEL5z498Smg/B8TlHc/WtiMnYh+vvh4kWAQOMvsp0 LE3N1LMpJ9dohOTpUbrIoSpxqGv3/VcIiJvKNJMQJD3vMMvYcLbZqzoGtP8xkt5gn5qJ JvktjDSWHLqByjTzk2dxWaJGQtuyuC/jfcXQTfVmw/myYPpTtgwNtnL80+HiLvldFR5j rmI9+RgRwXa3TWndGI3ARrX47pR7xXb8XDf72FSqW9VJ0gJEl2Chu1N1U3dw8p6asiOM 2+aLEh7p8brnDubE9v8kesqCJvHb69FC85uRgVWkspZ4Eh2vWq79qrhzgvo5il3R650u Xb2g== 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; bh=wF/DdZbRfYbG9X5wQZcxj2i9FV4XpEAnwv7N+rfiA+0=; b=Httzx1kp59Sft+8/LU3s7tMjzZbCHPyTj/qfW19S9P3Tt9mBcWeYQAx70C9y466ARO GTEgsYHSCSlTQxw2WjrJN83zYzqaOvSfkhSVfDahpmrOlC2McjRJuKfYbmOLjovs4eFp ZP/FDw/yLo95f7FQqZiXRgcovD47UiiPcAXpGWJUQXC1TOd/a0eJp1lXWHVW66h97EQa cAhmoWIhadhpi38RwK3Zv/PozSffARGCQt7YhMhXxCu6zEBXP+4BSrl4KJPrN11KCpLn sdFLMXBlMkp4XmKUNclWW5Zs4rbvHB/EdFY8QwFMfii/llh+KEMwhAyZucrCnc7f+28u Pwpg== X-Gm-Message-State: ALyK8tJvqI9AVdLvHp8HSq5o1gG5KDP+W9vj7ZqC1TQ6qga8h1NubNT4nVb3ANXw7UBumMRnpnMDtYwDWQHzIG0L MIME-Version: 1.0 X-Received: by 10.140.34.97 with SMTP id k88mr15586787qgk.85.1464390094213; Fri, 27 May 2016 16:01:34 -0700 (PDT) Received: by 10.55.175.135 with HTTP; Fri, 27 May 2016 16:01:34 -0700 (PDT) In-Reply-To: References: <5748C270.4060904@nd.edu> <5748CAC7.8010204@nd.edu> Date: Fri, 27 May 2016 19:01:34 -0400 Message-ID: Subject: Re: Failed Sending Account Confirmation Email after Account Creation with local PGA - WSO2 IS set up From: Abhishek Jain To: dev Content-Type: multipart/alternative; boundary=001a11c0df2a60e4890533dae3cd archived-at: Fri, 27 May 2016 23:01:45 -0000 --001a11c0df2a60e4890533dae3cd Content-Type: text/plain; charset=UTF-8 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 wrote: > Hi Jeff, > Yes. I configured MailTransportSender. I configured it as follows : > > > class="org.apache.axis2.transport.mail.MailTransportSender"> > abhi.airavata94@gmail.com > > abhi.airavata94 > somepassword > smtp.gmail.com > > 587 > true > true > > > It stills throws the same error. > > > > > > On Fri, May 27, 2016 at 6:34 PM, Abhishek Jain > 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)* --001a11c0df2a60e4890533dae3cd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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=3Dfalse

=
# Enable email sending function when recovering the accou= nt and verifying the user creation

N= otification.Sending.Enable=3Dtrue
Notification.Expire.Time= =3D7200

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

Notification.S= ending.Internally.Managed=3Dtrue

# E= nable verification of account creation. When self registration is done, =C2= =A0user would be verified by sending email (confirmation link) to user'= s email account
=C2=A0
UserAccount.Verifi= cation.Enable=3Dfalse

UserAccount.Re= covery.Enable=3Dfalse


=
# 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 r= ole. Not for the user who is registered.

UserAccount.Verification.Role=3D

<= b># Whether captcha verification is done by identity server or application = level

Captcha.Verification.Internall= y.Managed=3Dfalse

# Whether temporar= y passwords are used when creating users or recovering accounts.
<= div>
Temporary.Password.Enable=3Dfalse
Temporary.Password.OneTime=3Dfalse
Temporary.Password= .Expire.Time=3D0

# Enable authentica= tion rules other than password check=C2=A0

<= div>Authentication.Policy.Enable=3Dtrue

<= div># Enable following checks during authentication.=C2=A0 By default ac= count lock check is enabled.

Authent= ication.Policy.Check.Account.Exist=3Dfalse=C2=A0
Authentic= ation.Policy.Check.Account.Lock=3Dfalse
Authentication.Pol= icy.Check.OneTime.Password=3Dfalse
Authentication.Policy.C= heck.Password.Expire=3Dfalse

# Confi= guration to build an authentication policy

<= div>Authentication.Policy.Password.Expire.Time=3D0
# If= account verification is not enabled, following property will decide where = user must be lock or not after user is created=C2=A0
Authe= ntication.Policy.Account.Lock.On.Creation=3Dtrue
Authentic= ation.Policy.Account.Lock.Time=3D0
Authentication.Policy.A= ccount.Lock.On.Failure=3Dfalse
Authentication.Policy.Accou= nt.Lock.On.Failure.Max.Attempts=3D0

= # Define pluggable extension points

= Identity.Mgt.Random.Password.Grenerator=3Dorg.wso2.carbon.identity.mgt.pass= word.DefaultPasswordGenerator
#Identity.Mgt.User.Data.Stor= e=3Dorg.wso2.carbon.identity.mgt.store.UserStoreBasedIdentityDataStore<= /div>
Identity.Mgt.User.Data.Store=3Dorg.wso2.carbon.identity.mgt.st= ore.JDBCIdentityDataStore
Identity.Mgt.Notification.Sendin= g.Module.1=3Dorg.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule
Identity.Mgt.User.Recovery.Data.Store=3Dorg.wso2.carbon.iden= tity.mgt.store.RegistryRecoveryDataStore
Identity.Mgt.Regi= stry.CleanUpPeriod=3D1440


# Define password policy enforce extensions
#Password.policy.extensions.1=3Dorg.wso2.carbon.identit= y.mgt.policy.password.DefaultPasswordLengthPolicy
#Passwor= d.policy.extensions.1.min.length=3D6
#Password.policy.exte= nsions.1.max.length=3D12
#Password.policy.extensions.2=3Do= rg.wso2.carbon.identity.mgt.policy.password.DefaultPasswordNamePolicy
#Password.policy.extensions.3=3Dorg.wso2.carbon.identity.mgt.po= licy.password.DefaultPasswordPatternPolicy
#Password.polic= y.extensions.3.pattern=3D^((?=3D.*\\d)(?=3D.*[a-z])(?=3D.*[A-Z])(?=3D.*[!@#= $%&*])).{0,100}$
#Password.policy.extensions.3.errorMs= g=3D'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 :

=C2=A0<transp= ortSender name=3D"mailto"
=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.ax= is2.transport.mail.MailTransportSender">
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 <parameter name=3D"mail.smtp.from">abhi.airavata94@gmail.= com</parameter>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <paramet= er name=3D"mail.smtp.user">abhi.airavata94</parameter>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name=3D"mail.smtp.p= assword">somepassword</parameter>
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 <parameter name=3D"mail.smtp.host">smtp.gmail.com</parameter>=

=C2=A0 =C2=A0 =C2=A0 =C2=A0 <parameter name=3D= "mail.smtp.port">587</parameter>
=C2=A0 =C2=A0= =C2=A0 =C2=A0 <parameter name=3D"mail.smtp.starttls.enable"&g= t;true</parameter>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <paramete= r name=3D"mail.smtp.auth">true</parameter>
=C2= =A0 =C2=A0 </transportSender>

It still= s 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 w= ill verify it once again and then come back to you.

On Fri, May 27, 2016 at 6= :31 PM, Jeff <jkinniso@nd.edu> wrote:
=20 =20 =20
Hi Abishek,

Did you configure everything like in http://airavata.readthedocs.io/en/latest/Own-WSO= 2-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 =C2=A0secret key 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 still fails to send an email.
These are how my files look now.=C2=A0

On Fri, May 27, 2016 at 5:56 PM, Jeff <jk= inniso@nd.edu> 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=3D{confirmation-code}&am= p;amp;userstoredomain=3D{userstore-domain}&amp;username=3D{url:user-nam= e}&amp;tenantdomain=3D{tenant-domain}

for Password Reset and

https://localhos= t/airavata-php-gateway/public/confirm-user-registration?confirmation=3D= {confirmation-code}&amp;userstoredomain=3D{userstore-domain}&amp;us= ername=3D{url:user-name}&amp;tenantdomain=3D{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.DefaultE= mailSendingModule} - =C2=A0Sending 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.DefaultE= mailSendingModule} - =C2=A0Failed Sending Email
org.apache.axis2.AxisFault: Error generating mail message
<= /span>at org.apache.axis2.transport.base.AbstractTransportSender.handleException(Abs= tractTransportSender.java:226)
<= /span>at org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTranspo= rtSender.java:184)
<= /span>at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTran= sportSender.java:112)
<= /span>at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
<= /span>at org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnly= AxisOperation.java:297)
<= /span>at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
<= /span>at org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:511)=
<= /span>at org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:488)=
<= /span>at org.wso2.carbon.identity.mgt.mail.DefaultEmailSendingModule.sendEmail(Defau= ltEmailSendingModule.java:116)
<= /span>at org.wso2.carbon.identity.mgt.mail.AbstractEmailSendingModule.notifyUser(Abs= tractEmailSendingModule.java:59)
<= /span>at org.wso2.carbon.identity.mgt.NotificationSendingModule.run(NotificationSend= ingModule.java:33)
<= /span>at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)=
<= /span>at java.util.concurrent.FutureTask.run(FutureTask.java:262)
<= /span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1= 145)
<= /span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:= 615)
<= /span>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
<= /span>at org.apache.axis2.transport.base.AbstractTransportSender.handleException(Abs= tractTransportSender.java:226)
<= /span>at org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportS= ender.java:505)
<= /span>at org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTranspo= rtSender.java:175)
<= /span>... 14 more
Caused by: javax.mail.AuthenticationFailedException
<= /span>at javax.mail.Service.connect(Service.java:306)
<= /span>at javax.mail.Service.connect(Service.java:156)
<= /span>at javax.mail.Service.connect(Service.java:105)
<= /span>at javax.mail.Transport.send0(Transport.java:168)
<= /span>at javax.mail.Transport.send(Transport.java:98)
<= /span>at org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportS= ender.java:494)
<= /span>... 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.=C2=A0

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

Gradua= te Student
Depart= ment of Computer Science
Thomas J. Watson School of Engineering & Applied Science
Bingha= mton University - State Univeristy of New York (SUNY)






--
Thanks & Regards,
Abhishek Jain

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






--
Thanks & Regards,
A= bhishek Jain

Graduate Student
Dep= artment 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)





--
=
Thank= s & Regards,
Abhishek Jain

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


--001a11c0df2a60e4890533dae3cd--