Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
omer 345621
Liferay--eclipse--ApacheTomcat--Exchange server--pop3 mail configuration
May 16, 2012 1:17 AM
Answer

omer 345621

Rank: Junior Member

Posts: 42

Join Date: May 9, 2012

Recent Posts

HI,

I have liferay application used to develop by using spring and eclipse. our portal is working fine. And i can send email noticfications while some one create a new email ID with gmail,hotmail. But with our exchange error it wont work . I have acuried the right smtp outgoing setting(bcz thats only wht we really care right now) those settings are:


SMTP Port = 587 (SSL encrypted)

Incoming ports:
POP3 = 995 (SSL encrypted)
IMAP4 = 993 (SSL encrypted)

Authentication:
Basic - This is clear text authentication. Must be secured with TLS to prevent third parties from accessing
NTLM - NTLM is only available if accessing over RPC over http (also called outlook anywhere)

TLS encryption enabled = All clients connecting are REQUIRED to use TLS encryption in order to authenticate to the exchange server.
STARTTLS = enabled.


But tomcat displays following error when i create an account:


unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCe
thBuilder.java:174)
at java.secur





And some one sugggested below to me i am not sure if that is wht i needed to do?

In the life ray thread have a look at below conversation:

I just try this in the latest build of liferay 6.1.1, I think that it's an issue with the certificate. In my case the certificate its not registered with certificate provider, that maybe my problem

If this is true then they suggest:

Try setting JSSE truststore.

http://docs.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#javaHome





Full Error:

**at java.lang.Thread.run(Thread.java:619)**
**:09:07,699 ERROR [MVCPortlet:361] null is not a valid include**
**:10:28,268 ERROR [MailEngine:507] Exception reading response**
**:10:28,269 ERROR [MailEngine:154] sun.security.provider.certpath.SunCertPath**
**derException: unable to find valid certification path to requested target**
**at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCe**
**thBuilder.java:174)**
**at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)**
**at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:289**
**at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.j**
**200)**
**at sun.security.validator.Validator.validate(Validator.java:218)**
**at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509Trus**
**agerImpl.java:126)**
**at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTruste**
**09TrustManagerImpl.java:209)**
**at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTruste**
**09TrustManagerImpl.java:249)**
**at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Cli**
**andshaker.java:1053)**
**at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Client**
**shaker.java:128)**
**at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java**
**)**
**at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.j**
**465)**
**at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl**
**a:884)**
**at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(**
**ocketImpl.java:1120)**
**at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocket**
**.java:744)**
**at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.jav**
**)**
**at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)**
**at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)**
**at java.io.BufferedInputStream.read(BufferedInputStream.java:237)**
**at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)**
Priyanka Dhingra
RE: Liferay--eclipse--ApacheTomcat--Exchange server--pop3 mail configuratio
May 16, 2012 2:36 AM
Answer

Priyanka Dhingra

Rank: Expert

Posts: 408

Join Date: December 19, 2011

Recent Posts

Hi,
1
2TLS encryption enabled = All clients connecting are REQUIRED to use TLS encryption in order to authenticate to the exchange server.
3STARTTLS = enabled.

can you please share, from where you enabled the STARTTLS?
omer 345621
RE: Liferay--eclipse--ApacheTomcat--Exchange server--pop3 mail configuratio
May 16, 2012 12:23 PM
Answer

omer 345621

Rank: Junior Member

Posts: 42

Join Date: May 9, 2012

Recent Posts

#defaultmanaarlogo
image.default.company.logo=manaar.jpg
#
# MySQL
#
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://10.0.136.34:3306/mantradb
jdbc.default.username=liferay
jdbc.default.password=liferay

## Set the mail session properties
mail.session.mail.smtp.auth=true
mail.session.mail.smtp.auth.mechanisms=LOGIN
mail.session.mail.smtp.auth.plain.disable=true
mail.session.mail.smtp.host=mail.manaarco.com
mail.session.mail.smtp.password=******
mail.session.mail.smtp.port=587
mail.session.mail.smtp.user=MANAARNET\webabc
mail.session.mail.smtp.starttls.enable=true
mail.session.mail.transport.protocol=smtp


#
# Set the theme's shorcut icon.
#
theme.shortcut.icon=liferay.ico




# Set this to false if you want to be able to create users without an email
# address. An email address will be automatically assigned to a user based
# on the property "users.email.address.auto.suffix".
#
users.email.address.required=false
company.security.auth.type=screenName
#
# Set the suffix of the email address that will be automatically generated
# for a user that does not have an email address. This property is not used
# unless the property "users.email.address.required" is set to false. The
# autogenerated email address will be the user id plus the specified suffix.
# users.email.address.auto.suffix=noreply@email.com
login.events.pre=com.company.LdapEmailHook
omer 345621
RE: Liferay--eclipse--ApacheTomcat--Exchange server--pop3 mail configuratio
May 16, 2012 1:28 PM
Answer

omer 345621

Rank: Junior Member

Posts: 42

Join Date: May 9, 2012

Recent Posts

Priyanka i got those from portal-ext file as above mentioned!
Priyanka Dhingra
RE: Liferay--eclipse--ApacheTomcat--Exchange server--pop3 mail configuratio
May 16, 2012 10:31 PM
Answer

Priyanka Dhingra

Rank: Expert

Posts: 408

Join Date: December 19, 2011

Recent Posts

Hi Omer,
Thanks, i needed this.
omer 345621
RE: Liferay--eclipse--ApacheTomcat--Exchange server--pop3 mail configuratio
May 20, 2012 12:30 AM
Answer

omer 345621

Rank: Junior Member

Posts: 42

Join Date: May 9, 2012

Recent Posts

I figured it out that it is was happening due to below reasons:

1) our mail server is different then our application server. Application liferay is installed seperat then mail server. Now it was trying to verify the mail ssl certificate which we have installed on our mail server. But what are the steps or process for importing the certificate into the liferay keystore? I think we want to configure our Tomcat to allow us to use JavaMail in my web application.

We did shortcut in the past when we are developing the application by using the other port .
omer 345621
RE: Liferay--eclipse--ApacheTomcat--Exchange server--pop3 mail configuratio
May 20, 2012 2:59 AM
Answer

omer 345621

Rank: Junior Member

Posts: 42

Join Date: May 9, 2012

Recent Posts

i think this is the way to configure it

http://www.liferay.com/es/web/michael.young/blog/-/blogs/6670864

now where will i find server.xml file in tomcat?
omer 345621
RE: Liferay--eclipse--ApacheTomcat--Exchange server--pop3 mail configuratio
May 20, 2012 3:00 AM
Answer

omer 345621

Rank: Junior Member

Posts: 42

Join Date: May 9, 2012

Recent Posts

i think i find it

K:\liferay\xtract\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\conf
omer 345621
RE: Liferay--eclipse--ApacheTomcat--Exchange server--pop3 mail configuratio
May 20, 2012 11:00 PM
Answer

omer 345621

Rank: Junior Member

Posts: 42

Join Date: May 9, 2012

Recent Posts

i am now having this problem that my port 8443 doesn't work in liferay. Any tips?
omer 345621
RE: Liferay--eclipse--ApacheTomcat--Exchange server--pop3 mail configuratio
May 21, 2012 10:46 PM
Answer

omer 345621

Rank: Junior Member

Posts: 42

Join Date: May 9, 2012

Recent Posts

My gmail default settings are working fine with liferay to send an alert email on thime of creating a new account. But how to modify those settings to make the portal e mail send to function using Exchange.?