You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Enric Muñoz <em...@intecom.ad> on 2013/07/10 13:50:32 UTC
Project invitations and alerts by e-mail
Hi all,
I configured all the global settings in Cloudstack 4.1 to be able to receive project invitations and alerts by e-mail but i don't receive any e-mail. At the managementServer.log the following appears when trying to send a project invitation:
2013-07-10 13:44:53,449 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 1-982778062: Received: { Ans: , MgmtId: 74152552693, via: 1, Ver: v1, Flags: 10, $
2013-07-10 13:44:58,394 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===START=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1Z$
2013-07-10 13:44:58,431 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-8:null) submit async job-82, details: AsyncJobVO {id:82, userId: 2, accountId: 2, sessi$
2013-07-10 13:44:58,434 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Executing org.apache.cloudstack.api.command.user.account.AddAccountToProjectCm$
2013-07-10 13:44:58,438 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===END=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1ZJk$
2013-07-10 13:44:58,538 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to send project id=Project[1|name=test|domainid=2] invitation to the $
javax.mail.MessagingException: Exception reading response (javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:251)
at javax.mail.Service.connect(Service.java:91)
at javax.mail.Service.connect(Service.java:76)
at com.cloud.projects.ProjectManagerImpl$EmailInvite.sendInvite(ProjectManagerImpl.java:959)
at com.cloud.projects.ProjectManagerImpl.generateTokenBasedInvitation(ProjectManagerImpl.java:682)
at com.cloud.projects.ProjectManagerImpl.inviteAccountToProject(ProjectManagerImpl.java:572)
at com.cloud.projects.ProjectManagerImpl.addAccountToProject(ProjectManagerImpl.java:545)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.user.account.AddAccountToProjectCmd.execute(AddAccountToProjectCmd.java:89)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:672)
at sun.security.ssl.InputRecord.read(InputRecord.java:504)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:850)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1175)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:805)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:94)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 23 more
2013-07-10 13:44:58,544 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to generate invitation for email emunoz@intecom.ad to project id=Proj$
2013-07-10 13:44:58,552 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Complete async job-82, jobStatus: 2, resultCode: 530, result: Error Code: 530 $
2013-07-10 13:45:01,957 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) ===START=== 192.168.11.1 -- GET command=queryAsyncJobResult&jobId=0f3730ea-e19f-4c91-a0d$
2013-07-10 13:45:01,981 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-9:null) Async job-82 completed
Any idea of how to solve this problema??
Thanks,
Enric Muñoz - INTECOM
E-mail: emunoz@intecom.ad<ma...@intecom.ad>
Tel: (+376) 870100
Ctra. de la Comella 23
AD500 Andorra la Vella
Principat d'Andorra
RE: Project invitations and alerts by e-mail
Posted by Enric Muñoz <em...@intecom.ad>.
With gmail works correctly. Thank you!!
-----Mensaje original-----
De: Geoff Higginbottom [mailto:geoff.higginbottom@shapeblue.com]
Enviado el: miércoles, 10 de julio de 2013 16:49
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
My personal test builds use a gmail account, so if you just want to test the Project Invite features, drop exchange from the equation and use gmail
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 14:50
To: users@cloudstack.apache.org
Subject: RE: Project invitations and alerts by e-mail
Connectivity and authentication using Telnet is working. It doesn't work usign port 465 but then I realised that my Exchange server is listening SMTP over SSL using the port 587, so I tried with it too but it doesn't work neither. Isn't it possible to change a parameter to be able to send plain text for testing purposes?
-----Mensaje original-----
De: Geoff Higginbottom [mailto:geoff.higginbottom@shapeblue.com]
Enviado el: miércoles, 10 de julio de 2013 15:19
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
Have you tried setting the project.smtp.port top 465 as the exchange server may be configured to only accept SMTP over SSL
Have you tried using telnet to test SMTP connectivity and authentication
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 13:24
To: users@cloudstack.apache.org
Subject: RE: Project invitations and alerts by e-mail
Sorry, I forgot the most important: project.smtp.host = 91.187.93.103
-----Mensaje original-----
De: Enric Muñoz [mailto:emunoz@intecom.ad] Enviado el: miércoles, 10 de julio de 2013 14:22
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
These are the global settings relating the SMTP configuration for projects:
Project.email.sender = cloudstack@intecom.ad (It is an account created in MS Exchange for this purpose) Project.invite.required = true Project.invite.timeout = 86400 Project.smtp.password = The password related to the account in project.email.sender Project.smtp.port = 25 Project.smtp.useAuth = true Project.smtp.username = cloudstack@grup-tecnisa.local
-----Mensaje original-----
De: Geoff Higginbottom [mailto:geoff.higginbottom@shapeblue.com]
Enviado el: miércoles, 10 de julio de 2013 14:14
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
Enric,
Can you share your Global Settings that relate to the SMTP configuration for Projects?
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 12:51
To: users@cloudstack.apache.org
Subject: Project invitations and alerts by e-mail
Hi all,
I configured all the global settings in Cloudstack 4.1 to be able to receive project invitations and alerts by e-mail but i don't receive any e-mail. At the managementServer.log the following appears when trying to send a project invitation:
2013-07-10 13:44:53,449 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 1-982778062: Received: { Ans: , MgmtId: 74152552693, via: 1, Ver: v1, Flags: 10, $
2013-07-10 13:44:58,394 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===START=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1Z$
2013-07-10 13:44:58,431 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-8:null) submit async job-82, details: AsyncJobVO {id:82, userId: 2, accountId: 2, sessi$
2013-07-10 13:44:58,434 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Executing org.apache.cloudstack.api.command.user.account.AddAccountToProjectCm$
2013-07-10 13:44:58,438 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===END=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1ZJk$
2013-07-10 13:44:58,538 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to send project id=Project[1|name=test|domainid=2] invitation to the $
javax.mail.MessagingException: Exception reading response (javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:251)
at javax.mail.Service.connect(Service.java:91)
at javax.mail.Service.connect(Service.java:76)
at com.cloud.projects.ProjectManagerImpl$EmailInvite.sendInvite(ProjectManagerImpl.java:959)
at com.cloud.projects.ProjectManagerImpl.generateTokenBasedInvitation(ProjectManagerImpl.java:682)
at com.cloud.projects.ProjectManagerImpl.inviteAccountToProject(ProjectManagerImpl.java:572)
at com.cloud.projects.ProjectManagerImpl.addAccountToProject(ProjectManagerImpl.java:545)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.user.account.AddAccountToProjectCmd.execute(AddAccountToProjectCmd.java:89)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:672)
at sun.security.ssl.InputRecord.read(InputRecord.java:504)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:850)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1175)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:805)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:94)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 23 more
2013-07-10 13:44:58,544 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to generate invitation for email emunoz@intecom.ad to project id=Proj$
2013-07-10 13:44:58,552 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Complete async job-82, jobStatus: 2, resultCode: 530, result: Error Code: 530 $
2013-07-10 13:45:01,957 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) ===START=== 192.168.11.1 -- GET command=queryAsyncJobResult&jobId=0f3730ea-e19f-4c91-a0d$
2013-07-10 13:45:01,981 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-9:null) Async job-82 completed
Any idea of how to solve this problema??
Thanks,
Enric Muñoz - INTECOM
E-mail: emunoz@intecom.ad<ma...@intecom.ad>
Tel: (+376) 870100
Ctra. de la Comella 23
AD500 Andorra la Vella
Principat d'Andorra
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
RE: Project invitations and alerts by e-mail
Posted by Geoff Higginbottom <ge...@shapeblue.com>.
My personal test builds use a gmail account, so if you just want to test the Project Invite features, drop exchange from the equation and use gmail
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 14:50
To: users@cloudstack.apache.org
Subject: RE: Project invitations and alerts by e-mail
Connectivity and authentication using Telnet is working. It doesn't work usign port 465 but then I realised that my Exchange server is listening SMTP over SSL using the port 587, so I tried with it too but it doesn't work neither. Isn't it possible to change a parameter to be able to send plain text for testing purposes?
-----Mensaje original-----
De: Geoff Higginbottom [mailto:geoff.higginbottom@shapeblue.com]
Enviado el: miércoles, 10 de julio de 2013 15:19
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
Have you tried setting the project.smtp.port top 465 as the exchange server may be configured to only accept SMTP over SSL
Have you tried using telnet to test SMTP connectivity and authentication
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 13:24
To: users@cloudstack.apache.org
Subject: RE: Project invitations and alerts by e-mail
Sorry, I forgot the most important: project.smtp.host = 91.187.93.103
-----Mensaje original-----
De: Enric Muñoz [mailto:emunoz@intecom.ad] Enviado el: miércoles, 10 de julio de 2013 14:22
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
These are the global settings relating the SMTP configuration for projects:
Project.email.sender = cloudstack@intecom.ad (It is an account created in MS Exchange for this purpose) Project.invite.required = true Project.invite.timeout = 86400 Project.smtp.password = The password related to the account in project.email.sender Project.smtp.port = 25 Project.smtp.useAuth = true Project.smtp.username = cloudstack@grup-tecnisa.local
-----Mensaje original-----
De: Geoff Higginbottom [mailto:geoff.higginbottom@shapeblue.com]
Enviado el: miércoles, 10 de julio de 2013 14:14
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
Enric,
Can you share your Global Settings that relate to the SMTP configuration for Projects?
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 12:51
To: users@cloudstack.apache.org
Subject: Project invitations and alerts by e-mail
Hi all,
I configured all the global settings in Cloudstack 4.1 to be able to receive project invitations and alerts by e-mail but i don't receive any e-mail. At the managementServer.log the following appears when trying to send a project invitation:
2013-07-10 13:44:53,449 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 1-982778062: Received: { Ans: , MgmtId: 74152552693, via: 1, Ver: v1, Flags: 10, $
2013-07-10 13:44:58,394 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===START=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1Z$
2013-07-10 13:44:58,431 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-8:null) submit async job-82, details: AsyncJobVO {id:82, userId: 2, accountId: 2, sessi$
2013-07-10 13:44:58,434 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Executing org.apache.cloudstack.api.command.user.account.AddAccountToProjectCm$
2013-07-10 13:44:58,438 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===END=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1ZJk$
2013-07-10 13:44:58,538 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to send project id=Project[1|name=test|domainid=2] invitation to the $
javax.mail.MessagingException: Exception reading response (javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:251)
at javax.mail.Service.connect(Service.java:91)
at javax.mail.Service.connect(Service.java:76)
at com.cloud.projects.ProjectManagerImpl$EmailInvite.sendInvite(ProjectManagerImpl.java:959)
at com.cloud.projects.ProjectManagerImpl.generateTokenBasedInvitation(ProjectManagerImpl.java:682)
at com.cloud.projects.ProjectManagerImpl.inviteAccountToProject(ProjectManagerImpl.java:572)
at com.cloud.projects.ProjectManagerImpl.addAccountToProject(ProjectManagerImpl.java:545)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.user.account.AddAccountToProjectCmd.execute(AddAccountToProjectCmd.java:89)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:672)
at sun.security.ssl.InputRecord.read(InputRecord.java:504)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:850)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1175)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:805)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:94)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 23 more
2013-07-10 13:44:58,544 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to generate invitation for email emunoz@intecom.ad to project id=Proj$
2013-07-10 13:44:58,552 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Complete async job-82, jobStatus: 2, resultCode: 530, result: Error Code: 530 $
2013-07-10 13:45:01,957 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) ===START=== 192.168.11.1 -- GET command=queryAsyncJobResult&jobId=0f3730ea-e19f-4c91-a0d$
2013-07-10 13:45:01,981 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-9:null) Async job-82 completed
Any idea of how to solve this problema??
Thanks,
Enric Muñoz - INTECOM
E-mail: emunoz@intecom.ad<ma...@intecom.ad>
Tel: (+376) 870100
Ctra. de la Comella 23
AD500 Andorra la Vella
Principat d'Andorra
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
RE: Project invitations and alerts by e-mail
Posted by Enric Muñoz <em...@intecom.ad>.
Connectivity and authentication using Telnet is working. It doesn't work usign port 465 but then I realised that my Exchange server is listening SMTP over SSL using the port 587, so I tried with it too but it doesn't work neither. Isn't it possible to change a parameter to be able to send plain text for testing purposes?
-----Mensaje original-----
De: Geoff Higginbottom [mailto:geoff.higginbottom@shapeblue.com]
Enviado el: miércoles, 10 de julio de 2013 15:19
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
Have you tried setting the project.smtp.port top 465 as the exchange server may be configured to only accept SMTP over SSL
Have you tried using telnet to test SMTP connectivity and authentication
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 13:24
To: users@cloudstack.apache.org
Subject: RE: Project invitations and alerts by e-mail
Sorry, I forgot the most important: project.smtp.host = 91.187.93.103
-----Mensaje original-----
De: Enric Muñoz [mailto:emunoz@intecom.ad] Enviado el: miércoles, 10 de julio de 2013 14:22
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
These are the global settings relating the SMTP configuration for projects:
Project.email.sender = cloudstack@intecom.ad (It is an account created in MS Exchange for this purpose) Project.invite.required = true Project.invite.timeout = 86400 Project.smtp.password = The password related to the account in project.email.sender Project.smtp.port = 25 Project.smtp.useAuth = true Project.smtp.username = cloudstack@grup-tecnisa.local
-----Mensaje original-----
De: Geoff Higginbottom [mailto:geoff.higginbottom@shapeblue.com]
Enviado el: miércoles, 10 de julio de 2013 14:14
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
Enric,
Can you share your Global Settings that relate to the SMTP configuration for Projects?
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 12:51
To: users@cloudstack.apache.org
Subject: Project invitations and alerts by e-mail
Hi all,
I configured all the global settings in Cloudstack 4.1 to be able to receive project invitations and alerts by e-mail but i don't receive any e-mail. At the managementServer.log the following appears when trying to send a project invitation:
2013-07-10 13:44:53,449 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 1-982778062: Received: { Ans: , MgmtId: 74152552693, via: 1, Ver: v1, Flags: 10, $
2013-07-10 13:44:58,394 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===START=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1Z$
2013-07-10 13:44:58,431 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-8:null) submit async job-82, details: AsyncJobVO {id:82, userId: 2, accountId: 2, sessi$
2013-07-10 13:44:58,434 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Executing org.apache.cloudstack.api.command.user.account.AddAccountToProjectCm$
2013-07-10 13:44:58,438 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===END=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1ZJk$
2013-07-10 13:44:58,538 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to send project id=Project[1|name=test|domainid=2] invitation to the $
javax.mail.MessagingException: Exception reading response (javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:251)
at javax.mail.Service.connect(Service.java:91)
at javax.mail.Service.connect(Service.java:76)
at com.cloud.projects.ProjectManagerImpl$EmailInvite.sendInvite(ProjectManagerImpl.java:959)
at com.cloud.projects.ProjectManagerImpl.generateTokenBasedInvitation(ProjectManagerImpl.java:682)
at com.cloud.projects.ProjectManagerImpl.inviteAccountToProject(ProjectManagerImpl.java:572)
at com.cloud.projects.ProjectManagerImpl.addAccountToProject(ProjectManagerImpl.java:545)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.user.account.AddAccountToProjectCmd.execute(AddAccountToProjectCmd.java:89)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:672)
at sun.security.ssl.InputRecord.read(InputRecord.java:504)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:850)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1175)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:805)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:94)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 23 more
2013-07-10 13:44:58,544 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to generate invitation for email emunoz@intecom.ad to project id=Proj$
2013-07-10 13:44:58,552 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Complete async job-82, jobStatus: 2, resultCode: 530, result: Error Code: 530 $
2013-07-10 13:45:01,957 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) ===START=== 192.168.11.1 -- GET command=queryAsyncJobResult&jobId=0f3730ea-e19f-4c91-a0d$
2013-07-10 13:45:01,981 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-9:null) Async job-82 completed
Any idea of how to solve this problema??
Thanks,
Enric Muñoz - INTECOM
E-mail: emunoz@intecom.ad<ma...@intecom.ad>
Tel: (+376) 870100
Ctra. de la Comella 23
AD500 Andorra la Vella
Principat d'Andorra
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
RE: Project invitations and alerts by e-mail
Posted by Geoff Higginbottom <ge...@shapeblue.com>.
Have you tried setting the project.smtp.port top 465 as the exchange server may be configured to only accept SMTP over SSL
Have you tried using telnet to test SMTP connectivity and authentication
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 13:24
To: users@cloudstack.apache.org
Subject: RE: Project invitations and alerts by e-mail
Sorry, I forgot the most important: project.smtp.host = 91.187.93.103
-----Mensaje original-----
De: Enric Muñoz [mailto:emunoz@intecom.ad] Enviado el: miércoles, 10 de julio de 2013 14:22
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
These are the global settings relating the SMTP configuration for projects:
Project.email.sender = cloudstack@intecom.ad (It is an account created in MS Exchange for this purpose) Project.invite.required = true Project.invite.timeout = 86400 Project.smtp.password = The password related to the account in project.email.sender Project.smtp.port = 25 Project.smtp.useAuth = true Project.smtp.username = cloudstack@grup-tecnisa.local
-----Mensaje original-----
De: Geoff Higginbottom [mailto:geoff.higginbottom@shapeblue.com]
Enviado el: miércoles, 10 de julio de 2013 14:14
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
Enric,
Can you share your Global Settings that relate to the SMTP configuration for Projects?
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 12:51
To: users@cloudstack.apache.org
Subject: Project invitations and alerts by e-mail
Hi all,
I configured all the global settings in Cloudstack 4.1 to be able to receive project invitations and alerts by e-mail but i don't receive any e-mail. At the managementServer.log the following appears when trying to send a project invitation:
2013-07-10 13:44:53,449 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 1-982778062: Received: { Ans: , MgmtId: 74152552693, via: 1, Ver: v1, Flags: 10, $
2013-07-10 13:44:58,394 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===START=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1Z$
2013-07-10 13:44:58,431 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-8:null) submit async job-82, details: AsyncJobVO {id:82, userId: 2, accountId: 2, sessi$
2013-07-10 13:44:58,434 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Executing org.apache.cloudstack.api.command.user.account.AddAccountToProjectCm$
2013-07-10 13:44:58,438 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===END=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1ZJk$
2013-07-10 13:44:58,538 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to send project id=Project[1|name=test|domainid=2] invitation to the $
javax.mail.MessagingException: Exception reading response (javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:251)
at javax.mail.Service.connect(Service.java:91)
at javax.mail.Service.connect(Service.java:76)
at com.cloud.projects.ProjectManagerImpl$EmailInvite.sendInvite(ProjectManagerImpl.java:959)
at com.cloud.projects.ProjectManagerImpl.generateTokenBasedInvitation(ProjectManagerImpl.java:682)
at com.cloud.projects.ProjectManagerImpl.inviteAccountToProject(ProjectManagerImpl.java:572)
at com.cloud.projects.ProjectManagerImpl.addAccountToProject(ProjectManagerImpl.java:545)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.user.account.AddAccountToProjectCmd.execute(AddAccountToProjectCmd.java:89)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:672)
at sun.security.ssl.InputRecord.read(InputRecord.java:504)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:850)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1175)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:805)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:94)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 23 more
2013-07-10 13:44:58,544 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to generate invitation for email emunoz@intecom.ad to project id=Proj$
2013-07-10 13:44:58,552 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Complete async job-82, jobStatus: 2, resultCode: 530, result: Error Code: 530 $
2013-07-10 13:45:01,957 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) ===START=== 192.168.11.1 -- GET command=queryAsyncJobResult&jobId=0f3730ea-e19f-4c91-a0d$
2013-07-10 13:45:01,981 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-9:null) Async job-82 completed
Any idea of how to solve this problema??
Thanks,
Enric Muñoz - INTECOM
E-mail: emunoz@intecom.ad<ma...@intecom.ad>
Tel: (+376) 870100
Ctra. de la Comella 23
AD500 Andorra la Vella
Principat d'Andorra
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
RE: Project invitations and alerts by e-mail
Posted by Enric Muñoz <em...@intecom.ad>.
Sorry, I forgot the most important: project.smtp.host = 91.187.93.103
-----Mensaje original-----
De: Enric Muñoz [mailto:emunoz@intecom.ad]
Enviado el: miércoles, 10 de julio de 2013 14:22
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
These are the global settings relating the SMTP configuration for projects:
Project.email.sender = cloudstack@intecom.ad (It is an account created in MS Exchange for this purpose) Project.invite.required = true Project.invite.timeout = 86400 Project.smtp.password = The password related to the account in project.email.sender Project.smtp.port = 25 Project.smtp.useAuth = true Project.smtp.username = cloudstack@grup-tecnisa.local
-----Mensaje original-----
De: Geoff Higginbottom [mailto:geoff.higginbottom@shapeblue.com]
Enviado el: miércoles, 10 de julio de 2013 14:14
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
Enric,
Can you share your Global Settings that relate to the SMTP configuration for Projects?
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 12:51
To: users@cloudstack.apache.org
Subject: Project invitations and alerts by e-mail
Hi all,
I configured all the global settings in Cloudstack 4.1 to be able to receive project invitations and alerts by e-mail but i don't receive any e-mail. At the managementServer.log the following appears when trying to send a project invitation:
2013-07-10 13:44:53,449 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 1-982778062: Received: { Ans: , MgmtId: 74152552693, via: 1, Ver: v1, Flags: 10, $
2013-07-10 13:44:58,394 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===START=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1Z$
2013-07-10 13:44:58,431 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-8:null) submit async job-82, details: AsyncJobVO {id:82, userId: 2, accountId: 2, sessi$
2013-07-10 13:44:58,434 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Executing org.apache.cloudstack.api.command.user.account.AddAccountToProjectCm$
2013-07-10 13:44:58,438 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===END=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1ZJk$
2013-07-10 13:44:58,538 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to send project id=Project[1|name=test|domainid=2] invitation to the $
javax.mail.MessagingException: Exception reading response (javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:251)
at javax.mail.Service.connect(Service.java:91)
at javax.mail.Service.connect(Service.java:76)
at com.cloud.projects.ProjectManagerImpl$EmailInvite.sendInvite(ProjectManagerImpl.java:959)
at com.cloud.projects.ProjectManagerImpl.generateTokenBasedInvitation(ProjectManagerImpl.java:682)
at com.cloud.projects.ProjectManagerImpl.inviteAccountToProject(ProjectManagerImpl.java:572)
at com.cloud.projects.ProjectManagerImpl.addAccountToProject(ProjectManagerImpl.java:545)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.user.account.AddAccountToProjectCmd.execute(AddAccountToProjectCmd.java:89)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:672)
at sun.security.ssl.InputRecord.read(InputRecord.java:504)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:850)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1175)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:805)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:94)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 23 more
2013-07-10 13:44:58,544 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to generate invitation for email emunoz@intecom.ad to project id=Proj$
2013-07-10 13:44:58,552 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Complete async job-82, jobStatus: 2, resultCode: 530, result: Error Code: 530 $
2013-07-10 13:45:01,957 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) ===START=== 192.168.11.1 -- GET command=queryAsyncJobResult&jobId=0f3730ea-e19f-4c91-a0d$
2013-07-10 13:45:01,981 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-9:null) Async job-82 completed
Any idea of how to solve this problema??
Thanks,
Enric Muñoz - INTECOM
E-mail: emunoz@intecom.ad<ma...@intecom.ad>
Tel: (+376) 870100
Ctra. de la Comella 23
AD500 Andorra la Vella
Principat d'Andorra
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
RE: Project invitations and alerts by e-mail
Posted by Enric Muñoz <em...@intecom.ad>.
These are the global settings relating the SMTP configuration for projects:
Project.email.sender = cloudstack@intecom.ad (It is an account created in MS Exchange for this purpose)
Project.invite.required = true
Project.invite.timeout = 86400
Project.smtp.password = The password related to the account in project.email.sender
Project.smtp.port = 25
Project.smtp.useAuth = true
Project.smtp.username = cloudstack@grup-tecnisa.local
-----Mensaje original-----
De: Geoff Higginbottom [mailto:geoff.higginbottom@shapeblue.com]
Enviado el: miércoles, 10 de julio de 2013 14:14
Para: users@cloudstack.apache.org
Asunto: RE: Project invitations and alerts by e-mail
Enric,
Can you share your Global Settings that relate to the SMTP configuration for Projects?
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 12:51
To: users@cloudstack.apache.org
Subject: Project invitations and alerts by e-mail
Hi all,
I configured all the global settings in Cloudstack 4.1 to be able to receive project invitations and alerts by e-mail but i don't receive any e-mail. At the managementServer.log the following appears when trying to send a project invitation:
2013-07-10 13:44:53,449 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 1-982778062: Received: { Ans: , MgmtId: 74152552693, via: 1, Ver: v1, Flags: 10, $
2013-07-10 13:44:58,394 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===START=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1Z$
2013-07-10 13:44:58,431 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-8:null) submit async job-82, details: AsyncJobVO {id:82, userId: 2, accountId: 2, sessi$
2013-07-10 13:44:58,434 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Executing org.apache.cloudstack.api.command.user.account.AddAccountToProjectCm$
2013-07-10 13:44:58,438 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===END=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1ZJk$
2013-07-10 13:44:58,538 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to send project id=Project[1|name=test|domainid=2] invitation to the $
javax.mail.MessagingException: Exception reading response (javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:251)
at javax.mail.Service.connect(Service.java:91)
at javax.mail.Service.connect(Service.java:76)
at com.cloud.projects.ProjectManagerImpl$EmailInvite.sendInvite(ProjectManagerImpl.java:959)
at com.cloud.projects.ProjectManagerImpl.generateTokenBasedInvitation(ProjectManagerImpl.java:682)
at com.cloud.projects.ProjectManagerImpl.inviteAccountToProject(ProjectManagerImpl.java:572)
at com.cloud.projects.ProjectManagerImpl.addAccountToProject(ProjectManagerImpl.java:545)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.user.account.AddAccountToProjectCmd.execute(AddAccountToProjectCmd.java:89)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:672)
at sun.security.ssl.InputRecord.read(InputRecord.java:504)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:850)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1175)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:805)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:94)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 23 more
2013-07-10 13:44:58,544 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to generate invitation for email emunoz@intecom.ad to project id=Proj$
2013-07-10 13:44:58,552 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Complete async job-82, jobStatus: 2, resultCode: 530, result: Error Code: 530 $
2013-07-10 13:45:01,957 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) ===START=== 192.168.11.1 -- GET command=queryAsyncJobResult&jobId=0f3730ea-e19f-4c91-a0d$
2013-07-10 13:45:01,981 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-9:null) Async job-82 completed
Any idea of how to solve this problema??
Thanks,
Enric Muñoz - INTECOM
E-mail: emunoz@intecom.ad<ma...@intecom.ad>
Tel: (+376) 870100
Ctra. de la Comella 23
AD500 Andorra la Vella
Principat d'Andorra
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
RE: Project invitations and alerts by e-mail
Posted by Geoff Higginbottom <ge...@shapeblue.com>.
Enric,
Can you share your Global Settings that relate to the SMTP configuration for Projects?
Regards
Geoff Higginbottom
D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
geoff.higginbottom@shapeblue.com
-----Original Message-----
From: Enric Muñoz [mailto:emunoz@intecom.ad]
Sent: 10 July 2013 12:51
To: users@cloudstack.apache.org
Subject: Project invitations and alerts by e-mail
Hi all,
I configured all the global settings in Cloudstack 4.1 to be able to receive project invitations and alerts by e-mail but i don't receive any e-mail. At the managementServer.log the following appears when trying to send a project invitation:
2013-07-10 13:44:53,449 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 1-982778062: Received: { Ans: , MgmtId: 74152552693, via: 1, Ver: v1, Flags: 10, $
2013-07-10 13:44:58,394 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===START=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1Z$
2013-07-10 13:44:58,431 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-8:null) submit async job-82, details: AsyncJobVO {id:82, userId: 2, accountId: 2, sessi$
2013-07-10 13:44:58,434 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Executing org.apache.cloudstack.api.command.user.account.AddAccountToProjectCm$
2013-07-10 13:44:58,438 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===END=== 192.168.11.1 -- GET command=addAccountToProject&response=json&sessionkey=H1ZJk$
2013-07-10 13:44:58,538 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to send project id=Project[1|name=test|domainid=2] invitation to the $
javax.mail.MessagingException: Exception reading response (javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:251)
at javax.mail.Service.connect(Service.java:91)
at javax.mail.Service.connect(Service.java:76)
at com.cloud.projects.ProjectManagerImpl$EmailInvite.sendInvite(ProjectManagerImpl.java:959)
at com.cloud.projects.ProjectManagerImpl.generateTokenBasedInvitation(ProjectManagerImpl.java:682)
at com.cloud.projects.ProjectManagerImpl.inviteAccountToProject(ProjectManagerImpl.java:572)
at com.cloud.projects.ProjectManagerImpl.addAccountToProject(ProjectManagerImpl.java:545)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.user.account.AddAccountToProjectCmd.execute(AddAccountToProjectCmd.java:89)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:672)
at sun.security.ssl.InputRecord.read(InputRecord.java:504)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:850)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1175)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:805)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:94)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 23 more
2013-07-10 13:44:58,544 WARN [cloud.projects.ProjectManagerImpl] (Job-Executor-3:job-82) Failed to generate invitation for email emunoz@intecom.ad to project id=Proj$
2013-07-10 13:44:58,552 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-3:job-82) Complete async job-82, jobStatus: 2, resultCode: 530, result: Error Code: 530 $
2013-07-10 13:45:01,957 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) ===START=== 192.168.11.1 -- GET command=queryAsyncJobResult&jobId=0f3730ea-e19f-4c91-a0d$
2013-07-10 13:45:01,981 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-9:null) Async job-82 completed
Any idea of how to solve this problema??
Thanks,
Enric Muñoz - INTECOM
E-mail: emunoz@intecom.ad<ma...@intecom.ad>
Tel: (+376) 870100
Ctra. de la Comella 23
AD500 Andorra la Vella
Principat d'Andorra
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
Re: Project invitations and alerts by e-mail
Posted by Valery Ciareszka <va...@gmail.com>.
It seems that cloudstack works with smtp only with ssl and only with
vendor-signed ssl certificates (self-signed will not work). Had the same
issue with 4.0.2
On Wed, Jul 10, 2013 at 2:50 PM, Enric Muñoz <em...@intecom.ad> wrote:
> Hi all,
>
> I configured all the global settings in Cloudstack 4.1 to be able to
> receive project invitations and alerts by e-mail but i don't receive any
> e-mail. At the managementServer.log the following appears when trying to
> send a project invitation:
> 2013-07-10 13:44:53,449 DEBUG [agent.transport.Request]
> (StatsCollector-2:null) Seq 1-982778062: Received: { Ans: , MgmtId:
> 74152552693, via: 1, Ver: v1, Flags: 10, $
> 2013-07-10 13:44:58,394 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-8:null) ===START=== 192.168.11.1 -- GET
> command=addAccountToProject&response=json&sessionkey=H1Z$
> 2013-07-10 13:44:58,431 DEBUG [cloud.async.AsyncJobManagerImpl]
> (catalina-exec-8:null) submit async job-82, details: AsyncJobVO {id:82,
> userId: 2, accountId: 2, sessi$
> 2013-07-10 13:44:58,434 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-3:job-82) Executing
> org.apache.cloudstack.api.command.user.account.AddAccountToProjectCm$
> 2013-07-10 13:44:58,438 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-8:null) ===END=== 192.168.11.1 -- GET
> command=addAccountToProject&response=json&sessionkey=H1ZJk$
> 2013-07-10 13:44:58,538 WARN [cloud.projects.ProjectManagerImpl]
> (Job-Executor-3:job-82) Failed to send project
> id=Project[1|name=test|domainid=2] invitation to the $
> javax.mail.MessagingException: Exception reading response
> (javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
> connection?)
> at
> com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
> at
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
> at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
> at javax.mail.Service.connect(Service.java:251)
> at javax.mail.Service.connect(Service.java:91)
> at javax.mail.Service.connect(Service.java:76)
> at
> com.cloud.projects.ProjectManagerImpl$EmailInvite.sendInvite(ProjectManagerImpl.java:959)
> at
> com.cloud.projects.ProjectManagerImpl.generateTokenBasedInvitation(ProjectManagerImpl.java:682)
> at
> com.cloud.projects.ProjectManagerImpl.inviteAccountToProject(ProjectManagerImpl.java:572)
> at
> com.cloud.projects.ProjectManagerImpl.addAccountToProject(ProjectManagerImpl.java:545)
> at
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at
> org.apache.cloudstack.api.command.user.account.AddAccountToProjectCmd.execute(AddAccountToProjectCmd.java:89)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
> at
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:679)
> Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
> connection?
> at
> sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:672)
> at sun.security.ssl.InputRecord.read(InputRecord.java:504)
> at
> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:850)
> at
> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1175)
> at
> sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:805)
> at sun.security.ssl.AppInputStream.read(AppInputStream.java:94)
> at
> com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
> at
> com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
> at
> com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
> ... 23 more
> 2013-07-10 13:44:58,544 WARN [cloud.projects.ProjectManagerImpl]
> (Job-Executor-3:job-82) Failed to generate invitation for email
> emunoz@intecom.ad to project id=Proj$
> 2013-07-10 13:44:58,552 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-3:job-82) Complete async job-82, jobStatus: 2, resultCode:
> 530, result: Error Code: 530 $
> 2013-07-10 13:45:01,957 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-9:null) ===START=== 192.168.11.1 -- GET
> command=queryAsyncJobResult&jobId=0f3730ea-e19f-4c91-a0d$
> 2013-07-10 13:45:01,981 DEBUG [cloud.async.AsyncJobManagerImpl]
> (catalina-exec-9:null) Async job-82 completed
>
> Any idea of how to solve this problema??
>
> Thanks,
>
> Enric Muñoz - INTECOM
> E-mail: emunoz@intecom.ad<ma...@intecom.ad>
> Tel: (+376) 870100
> Ctra. de la Comella 23
> AD500 Andorra la Vella
> Principat d'Andorra
>
>
--
Regards,
Valery
http://protocol.by/slayer