構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
configuration smtp gmail raissa sagot 2012/06/08 8:55
RE: configuration smtp gmail raissa sagot 2012/04/19 0:17
RE: configuration smtp gmail Jignesh Vachhani 2012/04/19 0:22
RE: configuration smtp gmail raissa sagot 2012/04/20 7:00
RE: configuration smtp gmail David H Nebinger 2012/04/20 9:42
RE: configuration smtp gmail Mayur Soneta 2012/04/20 14:38
RE: configuration smtp gmail David H Nebinger 2012/04/20 16:17
RE: configuration smtp gmail Gabriel Leon Leyva 2012/04/20 17:08
RE: configuration smtp gmail David H Nebinger 2012/04/20 17:17
RE: configuration smtp gmail Gabriel Leon Leyva 2012/04/20 17:56
RE: configuration smtp gmail Hitoshi Ozawa 2012/04/24 6:07
RE: configuration smtp gmail Mayur Soneta 2012/04/25 22:21
RE: configuration smtp gmail Hitoshi Ozawa 2012/04/26 2:07
RE: configuration smtp gmail Mayur Soneta 2012/05/01 20:56
RE: configuration smtp gmail raissa sagot 2012/04/24 1:21
RE: configuration smtp gmail omer 345621 2012/05/21 22:58
RE: configuration smtp gmail Jignesh Vachhani 2012/05/21 23:59
RE: configuration smtp gmail omer 345621 2012/05/22 0:51
RE: configuration smtp gmail Vitor Silva 2012/05/22 5:43
RE: configuration smtp gmail omer 345621 2012/05/22 23:54
RE: configuration smtp gmail omer 345621 2012/05/22 23:55
RE: configuration smtp gmail omer 345621 2012/05/23 0:04
RE: configuration smtp gmail Vitor Silva 2012/05/23 2:57
RE: configuration smtp gmail omer 345621 2012/05/23 4:37
RE: configuration smtp gmail Vitor Silva 2012/05/23 6:07
RE: configuration smtp gmail omer 345621 2012/05/23 11:32
RE: configuration smtp gmail Vitor Silva 2012/05/24 5:38
RE: configuration smtp gmail omer 345621 2012/05/24 12:23
RE: configuration smtp gmail omer 345621 2012/05/24 13:25
RE: configuration smtp gmail David H Nebinger 2012/05/24 13:38
RE: configuration smtp gmail omer 345621 2012/05/24 13:44
RE: configuration smtp gmail David H Nebinger 2012/05/24 14:01
RE: configuration smtp gmail omer 345621 2012/05/24 14:09
RE: configuration smtp gmail omer 345621 2012/05/24 14:11
RE: configuration smtp gmail omer 345621 2012/05/24 15:08
RE: configuration smtp gmail David H Nebinger 2012/05/24 16:02
RE: configuration smtp gmail Vitor Silva 2012/05/25 2:18
RE: configuration smtp gmail omer 345621 2012/05/25 2:40
RE: configuration smtp gmail David H Nebinger 2012/05/25 5:47
RE: configuration smtp gmail omer 345621 2012/05/29 1:44
RE: configuration smtp gmail omer 345621 2012/05/29 3:00
RE: configuration smtp gmail omer 345621 2012/06/01 16:11
RE: configuration smtp gmail omer 345621 2012/06/02 3:30
RE: configuration smtp gmail David H Nebinger 2012/06/02 4:34
RE: configuration smtp gmail omer 345621 2012/06/03 0:48
RE: configuration smtp gmail omer 345621 2012/06/08 6:59
RE: configuration smtp gmail David H Nebinger 2012/06/08 8:18
RE: configuration smtp gmail omer 345621 2012/06/12 4:52
RE: configuration smtp gmail omer 345621 2012/06/12 5:15
RE: configuration smtp gmail Aaryan Oberoi 2014/02/17 1:31
RE: configuration smtp gmail David H Nebinger 2014/02/17 7:23
RE: configuration smtp gmail Luis Alberto Quispe Saltachin 2014/02/20 10:17
RE: configuration smtp gmail David H Nebinger 2014/02/24 6:55
RE: configuration smtp gmail Shankar Baba 2012/12/14 22:31
raissa sagot
configuration smtp gmail
2012/06/08 8:55
答え

raissa sagot

ランク: New Member

投稿: 16

参加年月日: 2012/03/22

最近の投稿

Fix permissions??
Hello
I new in liferay and I have a configuration problem.
Sorry for my basic English, I'm French and I have difficulties to speak English.
Since two days, I try to setup SMTP with gmail account. When I add a new user, or when I try to recover password for a user, I don't receive any email.
I had consult many page about this subjet such as :
  • http://www.liferay.com/community/wiki/-/wiki/Main/User+your+email+account+as+SMTP+server+with+Tomcat
  • http://www.liferay.com/community/forums/-/message_boards/message/13410111



I use liferay 6.1, with Tomcat

I have configure Server Administration -> Mail the following way :
SMTP Server: smtp.gmail.com
Port: 465
Use Secure Connection : true
User: my gmail adress
Password: my gmail password

I have change Settings : The domain name of mail server in gmail.com
and modify Expeditor in Email notification with my gmail adress

But I still get no email emoticon

In Eclipse I have got error :

ERROR [MailEngine:507] Exception reading response
ERROR [MailEngine:154] java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183)
at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:103)
at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:87)
at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:57)
at sun.security.validator.Validator.getInstance(Validator.java:161)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:108)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:204)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1053)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:128)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:529)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:465)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1120)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:744)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
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)



Could you help me please with clear and simple explanations?
Thank you in advance
R. Sagot
raissa sagot
RE: configuration smtp gmail
2012/04/19 0:17
答え

raissa sagot

ランク: New Member

投稿: 16

参加年月日: 2012/03/22

最近の投稿

Nobody ?? I really need to solve my problem
Jignesh Vachhani
RE: configuration smtp gmail
2012/04/19 0:22
答え

Jignesh Vachhani

ランク: Liferay Master

投稿: 785

参加年月日: 2008/03/10

最近の投稿

Take a look on below properties :

name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="localhost"
mail.pop.host="localhost"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.starttls.enable="true"
mail.smtp.user="username"
password="*****"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"


might be this property is for older liferay version so there would be some different in property key name.
you can refer http://www.liferaysolution.com/2011/08/smtp-setup-with-liferay.html for other details
raissa sagot
RE: configuration smtp gmail
2012/04/20 7:00
答え

raissa sagot

ランク: New Member

投稿: 16

参加年月日: 2012/03/22

最近の投稿

Thank you Jignesh Vachhani, but I already try this solution, no results for me.
I think something is missing.
David H Nebinger
RE: configuration smtp gmail
2012/04/20 9:42
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11064

参加年月日: 2006/09/01

最近の投稿

Mayur Soneta
RE: configuration smtp gmail
2012/04/20 14:38
答え

Mayur Soneta

ランク: New Member

投稿: 4

参加年月日: 2012/04/04

最近の投稿

I have the similar issue. Can anyone have the fix for that.
David H Nebinger
RE: configuration smtp gmail
2012/04/20 16:17
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11064

参加年月日: 2006/09/01

最近の投稿

There's already two links that explain what you need to do, plus the google search link so you can find more.

What more do you want us to do?
Gabriel Leon Leyva
RE: configuration smtp gmail
2012/04/20 17:08
答え

Gabriel Leon Leyva

ランク: Regular Member

投稿: 243

参加年月日: 2009/06/20

最近の投稿

David, Configuring gmail is easy, the problem is when you have your own mail server, I couldn't configure liferay to use my emal server.
David H Nebinger
RE: configuration smtp gmail
2012/04/20 17:17
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11064

参加年月日: 2006/09/01

最近の投稿

Ah, well that is a beast of a different color, and probably should be a different thread.

This thread has been on how to enable using Gmail as the SMTP server and the necessary steps to get the certificate to work.

If you're having issues w/ your own mail server, I'd say start a new thread with details about the issue and we'll be happy to help if we can...
Gabriel Leon Leyva
RE: configuration smtp gmail
2012/04/20 17:56
答え

Gabriel Leon Leyva

ランク: Regular Member

投稿: 243

参加年月日: 2009/06/20

最近の投稿

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 emoticon,
添付ファイル: email.bmp (1,364.4k)
raissa sagot
RE: configuration smtp gmail
2012/04/24 1:21
答え

raissa sagot

ランク: New Member

投稿: 16

参加年月日: 2012/03/22

最近の投稿

I find nothing that works, even on google. my problem is still not resolved. this becomes very annoying.
I don't understand that many people have this problem and no solution station.emoticon
Hitoshi Ozawa
RE: configuration smtp gmail
2012/04/24 6:07
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7949

参加年月日: 2010/03/23

最近の投稿

Yes, it's a problem with setting up a certificate. Try setting JSSE truststore.

http://docs.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#javaHome
Mayur Soneta
RE: configuration smtp gmail
2012/04/25 22:21
答え

Mayur Soneta

ランク: New Member

投稿: 4

参加年月日: 2012/04/04

最近の投稿

Still no luck:

Exception:

05:14:17,161 ERROR [MailEngine:489] Could not connect to SMTP host: smtp.gmail.com, port: 465
05:14:17,162 ERROR [MailEngine:154] java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)
at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)
at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104)
at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:88)
at sun.security.validator.Validator.getInstance(Validator.java:179)
at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:314)
at sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:173)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:186)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1320)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:998)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1294)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1321)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1305)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:548)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:352)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:233)




in ROOT.xml

<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="localhost"
mail.pop.host="localhost"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.starttls.enable="true"
mail.smtp.user="xxxxx"
password='xxxxx"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"


in tomcat --> server.xml
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="/Users/mayursoneta/programming/Liferay-Portal/apache-tomcat-6.0.35/webapps/ROOT/WEB-INF/classes/keystore"
keystorePass="password"
/>

I can login with https://localhost:8443/

So let me know please if I am missing anything . Thank you.
Hitoshi Ozawa
RE: configuration smtp gmail
2012/04/26 2:07
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7949

参加年月日: 2010/03/23

最近の投稿

So where did you set the setting in the page I've shown you?
Mayur Soneta
RE: configuration smtp gmail
2012/05/01 20:56
答え

Mayur Soneta

ランク: New Member

投稿: 4

参加年月日: 2012/04/04

最近の投稿

Thanks for the reply. Which setting are you talking about ?
omer 345621
RE: configuration smtp gmail
2012/05/21 22:58
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

Hi,

My gmail is working fine in liferay but my company email is not working fine with exchange. Any tips??
Jignesh Vachhani
RE: configuration smtp gmail
2012/05/21 23:59
答え

Jignesh Vachhani

ランク: Liferay Master

投稿: 785

参加年月日: 2008/03/10

最近の投稿

Are you using mail portlet or configuring through property file ?
omer 345621
RE: configuration smtp gmail
2012/05/22 0:51
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

Do you mean via portal website and via porta-ext file? Bcz i tried via both!
Vitor Silva
RE: configuration smtp gmail
2012/05/22 5:43
答え

Vitor Silva

ランク: Junior Member

投稿: 36

参加年月日: 2012/05/03

最近の投稿

Hi omer.
Can you describe what error has occurred? Do you have anything in the log file?
What version of the exchange server do you have?
Can you post the settings that you used to configure the email account?
Also, have you managed to configure any standard email client application with you exchange server?
Regards,
Vitor
omer 345621
RE: configuration smtp gmail
2012/05/22 23:54
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

Hi Vitor,

Sure I appreciate it. My problem is that I can use Gmail settings to works fine when I create a new account with liferay. I get new account emails notifications. But with my company email server it doesnot work and give ssl error and some others. My https://localhost:8443 also not working.
I pasted the code below. I am using exchange 2010. Settings are below:

Portal ext property file:


#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\ABC
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

Server.xml file =

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--><!-- Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
--><Server port="8005" shutdown="SHUTDOWN">
<!-- Security listener. Documentation at /docs/config/listeners.html
<Listener className="org.apache.catalina.security.SecurityListener" />
-->
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/>
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener"/>
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>

<!-- Global JNDI resources
Documentation at /docs/jndi-resources-howto.html
-->
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
</GlobalNamingResources>

<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" Note: A "Service" is not itself a "Container",
so you may not define subcomponents such as "Valves" at this level.
Documentation at /docs/config/service.html
-->
<Service name="Catalina">

<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
-->


<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8096" protocol="HTTP/1.1" redirectPort="8443"/>
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8" />
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->

<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector URIEncoding="UTF-8" port="8009" protocol="AJP/1.3" redirectPort="8443"/>


<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host).
Documentation at /docs/config/engine.html -->

<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
-->
<Engine defaultHost="localhost" name="Catalina">

<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
-->

<!-- Use the LockOutRealm to prevent attempts to guess user passwords
via a brute-force attack -->
<Realm className="org.apache.catalina.realm.LockOutRealm">
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
</Realm>

<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">

<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->

<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log." suffix=".txt"/>

</Host>
</Engine>
</Service>
</Server>

CONTEXT

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--><!-- The contents of this file will be loaded for each web application --><Context>

<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>

<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->

<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->

</Context>


[b]ROOT


<Context path="" crossContext="true">

<!-- JAAS -->

<!--<Realm
className="org.apache.catalina.realm.JAASRealm"
appName="PortalRealm"
userClassNames="com.liferay.portal.kernel.security.jaas.PortalPrincipal"
roleClassNames="com.liferay.portal.kernel.security.jaas.PortalRole"
/>-->

<!--
Uncomment the following to disable persistent sessions across reboots.
-->

<!--<Manager pathname="" />-->

<!--
Uncomment the following to not use sessions. See the property
"session.disabled" in portal.properties.
-->

<!--<Manager className="com.liferay.support.tomcat.session.SessionLessManagerBase" />-->
</Context>
omer 345621
RE: configuration smtp gmail
2012/05/22 23:55
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

For the error i have print screen i will email u the attached file since i cannot attach file here in to the post.
omer 345621
RE: configuration smtp gmail
2012/05/23 0:04
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

some of the errors are:
ERROR [MailEngine:154] javax.net.ssl.SSLException: Unrecognized SSL message,plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord.java:523)
at com.sun.net.ssl.InputRecord.read(InputRecord.java:355)
at com.sun.net.ssl.internal.ssl.SSLSocketInputl.perfeornInitialhandshakes(SSLSocketimpl.java:1120)
Vitor Silva
RE: configuration smtp gmail
2012/05/23 2:57
答え

Vitor Silva

ランク: Junior Member

投稿: 36

参加年月日: 2012/05/03

最近の投稿

Please post more stacktrace lines.
You are probably behind a proxy which is blocking the request.
Can you ask your System Administrator for the liferay machine to bypass the proxy and access directly to the mail server?
You can also put com.liferay.util.mail to DEBUG Leven on the control panel to have more information.
Also make sure you are under SSL otherwise uncheck the Use a Secure Network Connection option.
omer 345621
RE: configuration smtp gmail
2012/05/23 4:37
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

I appreciate it. Can you plz check if i am doing the right steps for our certificate to be placed or instaled right manner

Out certificate name is mail.manaarco.com file extension is .crt

K:\liferay\xtract\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\conf\mail.manaarco.com.crt -keystore manstore

?

on the other hadn java is in

C:\Java\jdk1.6.0_24\bin

Thanks,
Vitor Silva
RE: configuration smtp gmail
2012/05/23 6:07
答え

Vitor Silva

ランク: Junior Member

投稿: 36

参加年月日: 2012/05/03

最近の投稿

Follow the tutorial
http://docs.oracle.com/javase/tutorial/security/toolsign/rstep2.html

One the other hand, you can try to insert the configurations on portal-ext
mail.session.mail.transport.protocol=smtp
mail.session.mail.smtp.starttls.required=true
mail.session.mail.smtp.host=mail.mydomain.com
mail.session.mail.smtp.port=25
mail.session.mail.smtp.auth=true
mail.session.mail.smtp.ssl.enable=true
mail.session.mail.smtp.ssl.trust=mail.mydomain.com
mail.session.mail.smtp.user=system@myotherdomain.com
mail.session.mail.smtp.password=*mypassword!
mail.session.mail.store.protocol=imap
mail.session.mail.imap.host=mail.mydomain.com
mail.session.mail.imap.port=143
mail.session.mail.imap.auth=true
mail.session.mail.imap.ssl.enable=true
mail.session.mail.imap.ssl.trus=mail.mydomain.com
mail.session.mail.imap.user=system@myotherdomain.com
mail.session.mail.imap.password=*mypassword!

In order to do this you probably need to test it in a new environment because when you save from the control panel it will insert in de db and this properties configuration will be ignored.
omer 345621
RE: configuration smtp gmail
2012/05/23 11:32
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

Hi,

Ok thanks, I will try this now. But may i request another question abt ssl certificate. . How to install and enable SSL certification in the Tomcat directory of the Liferay app. Basically that's a Tomcat issue ? Many Thanks,
Vitor Silva
RE: configuration smtp gmail
2012/05/24 5:38
答え

Vitor Silva

ランク: Junior Member

投稿: 36

参加年月日: 2012/05/03

最近の投稿

The certificate is installed on the server. So yes, it is a tomcat issue, not liferay.
omer 345621
RE: configuration smtp gmail
2012/05/24 12:23
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

I used ur settings provieded above in the property file and i ask our server admin to congifure port 25 for unsecure connection. But still no use instead i got the following errors


ilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
928)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
AbstractProtocol.java:539)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin
t.java:298)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)
19:18:21,385 ERROR [MVCPortlet:361] null is not a valid include
19:18:28,019 INFO [CaptchaImpl:127] Initializing com.liferay.portal.captcha.sim
plecaptcha.SimpleCaptchaImpl
19:19:02,947 ERROR [MailEngine:507] Invalid Addresses
19:19:02,949 ERROR [MailEngine:154] com.sun.mail.smtp.SMTPAddressFailedException
: 550 5.7.1 Unable to relay

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:483)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:321)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:390)
at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMess
ageListener.java:95)
at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageL
istener.java:110)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseM
essageListener.java:25)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(In
vokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(Paralle
lDestination.java:106)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._r
unTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.ru
n(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:619)
omer 345621
RE: configuration smtp gmail
2012/05/24 13:25
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

Great news it worked and i got email alert on creation of new email account on liferay. But it just happen for once only now its not working again and i didnot change any thing after ti start working. Now logs are saying below


s/wsrp-portlet/WEB-INF/classes/portlet.properties
Loading file:/K:/liferay/xtract/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapp
s/wsrp-portlet/WEB-INF/classes/portlet.properties
20:20:19,155 INFO [HookHotDeployListener:1901] Registering hook for wsrp-portle
t
Loading file:/K:/liferay/xtract/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapp
s/wsrp-portlet/WEB-INF/classes/portal.properties
20:20:19,168 INFO [HookHotDeployListener:978] Hook for wsrp-portlet is availabl
e for use
20:20:19,171 INFO [PortletHotDeployListener:614] Registering portlets for wsrp-
portlet
Loading file:/K:/liferay/xtract/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapp
s/wsrp-portlet/WEB-INF/classes/portlet.properties
20:20:19,336 INFO [PortletHotDeployListener:438] 2 portlets for wsrp-portlet ar
e available for use
May 24, 2012 8:20:21 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8096"]
May 24, 2012 8:20:21 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
May 24, 2012 8:20:21 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 79673 ms
20:20:57,354 ERROR [MVCPortlet:361] null is not a valid include
20:21:04,534 WARN [404_jsp:109] /home;jsessionid=17BF98EB8B007791DA1C651A4DE6AE
EA
20:21:08,891 ERROR [MVCPortlet:361] null is not a valid include
20:21:14,045 INFO [CaptchaImpl:127] Initializing com.liferay.portal.captcha.sim
plecaptcha.SimpleCaptchaImpl
20:21:59,792 ERROR [MailEngine:507] 550 5.7.1 Message rejected as spam by Conten
t Filtering.

20:21:59,795 ERROR [MailEngine:154] com.sun.mail.smtp.SMTPSendFailedException: 5
50 5.7.1 Message rejected as spam by Content Filtering.

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1
388)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1215)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:586)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:483)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:321)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:390)
at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMess
ageListener.java:95)
at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageL
istener.java:110)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseM
essageListener.java:25)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(In
vokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(Paralle
lDestination.java:106)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._r
unTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.ru
n(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:619)
David H Nebinger
RE: configuration smtp gmail
2012/05/24 13:38
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11064

参加年月日: 2006/09/01

最近の投稿

omer 345621:
20:21:59,795 ERROR [MailEngine:154] com.sun.mail.smtp.SMTPSendFailedException: 5
50 5.7.1 Message rejected as spam by Content Filtering.


Dude, why don't you read before posting? Clearly the reason the failure occurs is showing up, just like it did in the previous stack traces that you've posted...
omer 345621
RE: configuration smtp gmail
2012/05/24 13:44
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

Yes, Thanks, but why did it pass in the first attempt? Any way do you mean junk filter is blocking it?
David H Nebinger
RE: configuration smtp gmail
2012/05/24 14:01
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11064

参加年月日: 2006/09/01

最近の投稿

It's being rejected on the server side.

Could be rejected because of the email address that you've tried, could be because you're sending multiple copies of the same email to the same address, only gmail knows, and I doubt they're going to tell you why...

You have no control over what gmail will or will not accept.

That's the whole reason that, as has been said before, you should not try to use gmail as your outgoing email server. You have no control over what they'll accept, you have no control over whether they disable your account because you're sending too many emails, they don't like the attachments, etc.

It really is bad practice.
omer 345621
RE: configuration smtp gmail
2012/05/24 14:09
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

actually the email which was sucessfull was from my company domain ID then i try using gmail and hotmail ids to create account. the settings i put in was provided to me from liferay expert above, Yes in root file i may be using some gmail settings..can you give me the hint wht to change then? Any ways i really appreciating ur help bcz now atleast i am going some where..here is my root file

<Context path="" crossContext="true">

<!-- JAAS -->

<!--<Realm
className="org.apache.catalina.realm.JAASRealm"
appName="PortalRealm"
userClassNames="com.liferay.portal.kernel.security.jaas.PortalPrincipal"
roleClassNames="com.liferay.portal.kernel.security.jaas.PortalRole"
/>-->

<!--
Uncomment the following to disable persistent sessions across reboots.
-->

<!--<Manager pathname="" />-->

<!--
Uncomment the following to not use sessions. See the property
"session.disabled" in portal.properties.
-->

<!--<Manager className="com.liferay.support.tomcat.session.SessionLessManagerBase" />-->

<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="mail.manaarco.com"
mail.imap.port="993"
mail.pop.host="localhost"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="25"
mail.smtp.auth="true"
mail.smtp.starttls.enable="true"
mail.smtp.user="webmaster@manaarco.com"
password="====="
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>

</Context>
omer 345621
RE: configuration smtp gmail
2012/05/24 14:11
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

and my concern is only outgoing mail right now i am not even looking at incoming...I am only changing outgoing ports settings since we are on the start rest i am not touching it.
omer 345621
RE: configuration smtp gmail
2012/05/24 15:08
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

Hi, I see what you are saying actually i accidently left the gmail server there i changed it to my company server in smtp but i am back to my basic error messag eagain...


let
Loading file:/K:/liferay/xtract/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapp
s/wsrp-portlet/WEB-INF/classes/service.properties
Loading file:/K:/liferay/xtract/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapp
s/wsrp-portlet/WEB-INF/classes/portlet.properties
Loading file:/K:/liferay/xtract/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapp
s/wsrp-portlet/WEB-INF/classes/portlet.properties
22:03:08,519 INFO [HookHotDeployListener:1901] Registering hook for wsrp-portle
t
Loading file:/K:/liferay/xtract/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapp
s/wsrp-portlet/WEB-INF/classes/portal.properties
22:03:08,534 INFO [HookHotDeployListener:978] Hook for wsrp-portlet is availabl
e for use
22:03:08,537 INFO [PortletHotDeployListener:614] Registering portlets for wsrp-
portlet
Loading file:/K:/liferay/xtract/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapp
s/wsrp-portlet/WEB-INF/classes/portlet.properties
22:03:08,691 INFO [PortletHotDeployListener:438] 2 portlets for wsrp-portlet ar
e available for use
May 24, 2012 10:03:10 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8096"]
May 24, 2012 10:03:10 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
May 24, 2012 10:03:10 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 79944 ms
22:03:39,927 ERROR [MVCPortlet:361] null is not a valid include
22:03:46,494 WARN [404_jsp:109] /home;jsessionid=1A7BEDE0AF71363E3A1816BBCFAFBB
FD
22:03:49,569 ERROR [MVCPortlet:361] null is not a valid include
22:03:57,573 INFO [CaptchaImpl:127] Initializing com.liferay.portal.captcha.sim
plecaptcha.SimpleCaptchaImpl
22:04:30,481 ERROR [MailEngine:507] Invalid Addresses
22:04:30,483 ERROR [MailEngine:154] com.sun.mail.smtp.SMTPAddressFailedException
: 550 5.7.1 Unable to relay

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:483)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:321)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:390)
at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMess
ageListener.java:95)
at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageL
istener.java:110)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseM
essageListener.java:25)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(In
vokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(Paralle
lDestination.java:106)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._r
unTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.ru
n(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:619)

no email going
David H Nebinger
RE: configuration smtp gmail
2012/05/24 16:02
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11064

参加年月日: 2006/09/01

最近の投稿

omer 345621:
22:04:30,483 ERROR [MailEngine:154] com.sun.mail.smtp.SMTPAddressFailedException
: 550 5.7.1 Unable to relay


So this is a problem with the configuration of your corp email server.

Basically it means the server will only accept email to local recipients. It will not accept email to non-local recipients.

This, like the others, is not a Liferay issue.
Vitor Silva
RE: configuration smtp gmail
2012/05/25 2:18
答え

Vitor Silva

ランク: Junior Member

投稿: 36

参加年月日: 2012/05/03

最近の投稿

David is right omer..
omer 345621
RE: configuration smtp gmail
2012/05/25 2:40
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

I see thanks so much David & Vitor. But when you say "Basically it means the server will only accept email to local recipients. It will not accept email to non-local recipients."

What do you mean that server will only accept email to local recipients? Are you saying that my company domain email IDs shall be only able to communicate with the server in sending emails? If that is not what you mean then can you elaborate little?
David H Nebinger
RE: configuration smtp gmail
2012/05/25 5:47
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11064

参加年月日: 2006/09/01

最近の投稿

Yes, your corporate email server for your company, example.com, is configured to only accept email to example.com email addresses, i.e. omer@example.com is fine, but omer@gmail.com represents a relay to another email system, and that has been disabled.
omer 345621
RE: configuration smtp gmail
2012/05/29 1:44
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

Thanks, I am working on it. One done i will update the thread. I have another question inbetween..do you know how can i remove openID button tag from the front page? I just want login and new user to register appear on front page?
omer 345621
RE: configuration smtp gmail
2012/05/29 3:00
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

I figured it out. Thanks,
omer 345621
RE: configuration smtp gmail
2012/06/01 16:11
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

Hi i did wht u suggested i tired below:

Disable "Require User Authentication". If you go in Exchange -> Desired Mailbox properties -> Mail Flow Setting -> Message Delivery Restrictions -> Uncheck "Require that all senders are authenticated"

I also check if the spam filter is also blocking it. But its not. Settings seems ok. But i still get the below error and gmail or yahoo cant get any notifications.







at java.lang.Thread.run(Thread.java:619)
23:06:42,243 ERROR [MailEngine:507] Invalid Addresses
23:06:42,244 ERROR [MailEngine:154] com.sun.mail.smtp.SMTPAddressFailedException
: 550 5.7.1 Unable to relay

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:483)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:321)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:390)
at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMess
ageListener.java:95)
at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageL
istener.java:110)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseM
essageListener.java:25)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(In
vokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(Paralle
lDestination.java:106)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._r
unTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.ru
n(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:619)
omer 345621
RE: configuration smtp gmail
2012/06/02 3:30
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

also now the non secure port 25 is not sending emails as well and displays below error

10:26:59,710 INFO [CaptchaImpl:127] Initializing com.liferay.portal.captcha.sim
plecaptcha.SimpleCaptchaImpl
10:27:48,245 ERROR [MailEngine:507] 550 5.7.1 Message rejected as spam by Conten
t Filtering.

10:27:48,245 ERROR [MailEngine:154] com.sun.mail.smtp.SMTPSendFailedException: 5
50 5.7.1 Message rejected as spam by Content Filtering.

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1
388)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1215)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:586)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:483)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:321)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:390)
at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMess
ageListener.java:95)
at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageL
istener.java:110)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseM
essageListener.java:25)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(In
vokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(Paralle
lDestination.java:106)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._r
unTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.ru
n(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:619)
David H Nebinger
RE: configuration smtp gmail
2012/06/02 4:34
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11064

参加年月日: 2006/09/01

最近の投稿

You really need to stop posting this here.

It is not a Liferay issue at all. Not configuration, not setup, not implementation.

Both of your errors, unable to relay and rejected as spam, are originating from Exchange.

If you don't know how to set up and configure Exchange, it's really not our problem.

Hire yourself a M$ junkie that knows how to configure Exchange and let them fix it.
omer 345621
RE: configuration smtp gmail
2012/06/03 0:48
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

Ok. Got it. Can you help me here now?

http://www.liferay.com/community/forums/-/message_boards/message/14223821
omer 345621
RE: configuration smtp gmail
2012/06/08 6:59
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

I get email from :

Liferay Portal Workflow Notifications <no-reply@liferay.com>;

and to me and all the users group of the portal.

It says below message:

You have a new submission waiting for your review in the workflow.


Do you know under what file or folder i can change the settings of this group email ? Bcz i want to get the email notification from webmaster@companyDomain.com not no-reply@liferay.com

I don't think this email no-reply@liferay.com came from liferay forum.com bcz half of the suers are not even register on these forums.
David H Nebinger
RE: configuration smtp gmail
2012/06/08 8:18
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11064

参加年月日: 2006/09/01

最近の投稿

OMG, the thread that never dies...

Some of the email from stuff comes from the portal-ext.properties (search in portal.properties for email addresses to get the keys to override).

Some of the email from stuff comes from the system. Go to control panel -> settings -> Email Notifications to make changes for them.
omer 345621
RE: configuration smtp gmail
2012/06/12 4:52
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

Sorry to keep you disturbing. But i did what you told me and our exchange server people are USA based company and they are professional and hosting exchange for us. May be they are not the best but any ways they say below :

The spam filter/content filter is currently disabled. Please ensure everything on your client side is configured to accept mail from the liefray account.

And the poratal file settings are below




mail.session.mail.transport.protocol=smtp
mail.session.mail.smtp.starttls.required=false
mail.session.mail.smtp.host=mail.manaarco.com
mail.session.mail.smtp.port=25
mail.session.mail.smtp.auth=true
mail.session.mail.smtp.ssl.enable=false
mail.session.mail.smtp.ssl.trust=mail.manaarco.com
mail.session.mail.smtp.user=web@manaarco.com
mail.session.mail.smtp.password=12345678
mail.session.mail.store.protocol=imap
mail.session.mail.imap.host=mail.manaarco.com
mail.session.mail.imap.port=143
mail.session.mail.imap.auth=true
mail.session.mail.imap.ssl.enable=false
mail.session.mail.imap.ssl.trust=mail.manaarco.com
mail.session.mail.imap.user=web@manaarco.com
mail.session.mail.imap.password=12345678


login.events.pre=com.company.LdapEmailHook

Root file settings in catlina folder are below:

<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="mail.manaarco.com"
mail.imap.port="993"
mail.pop.host="mail.manaarco.com"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
mail.smtp.host="mail.manaarco.com"
mail.smtp.port="25"
mail.smtp.auth="true"
mail.smtp.starttls.enable="false"
mail.smtp.user="web@manaarco.com"
password="12345678"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"




And the portal website settings which you said are below
画像の固定

添付ファイル: d.jpg (195.3k)
omer 345621
RE: configuration smtp gmail
2012/06/12 5:15
答え

omer 345621

ランク: Junior Member

投稿: 54

参加年月日: 2012/05/09

最近の投稿

I think since i can get the email to our company domain but not on gmail or yahoo id. Do you think hotmail and gmail are blocking it as considering being spam since its from non secure port 25?
Shankar Baba
RE: configuration smtp gmail
2012/12/14 22:31
答え

Shankar Baba

ランク: Regular Member

投稿: 144

参加年月日: 2012/10/17

最近の投稿

omer 345621:
Hi,

My gmail is working fine in liferay but my company email is not working fine with exchange. Any tips??



Hi Omar , can u tell me how u configured the mail server for gmail, step by step,Thanks in advance.
Aaryan Oberoi
RE: configuration smtp gmail
2014/02/17 1:31
答え

Aaryan Oberoi

ランク: New Member

投稿: 1

参加年月日: 2014/02/17

最近の投稿

David H Nebinger:
OMG, the thread that never dies...

Some of the email from stuff comes from the portal-ext.properties (search in portal.properties for email addresses to get the keys to override).

Some of the email from stuff comes from the system. Go to control panel -> settings -> Email Notifications to make changes for them.



Mr. David H Nebinger ,

Wha is the problem with you. Are you a psycho. People over here are so sweet with you and you just keep on showing this rude attitude. Are you the owner of liferay?
Things are very simple here. No body owes you anything. People in this blog are just trying to share their knowledge and help people around.

Remember your time when you started working and you needed help. Don't ever boast on your knowledge many people have that...

Moral of the story is :

If you can answer questions politely then you should else just go away....No body needs you....


Thanks & Regards
Aaryan Oberoi
David H Nebinger
RE: configuration smtp gmail
2014/02/17 7:23
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11064

参加年月日: 2006/09/01

最近の投稿

Aaryan, I'm sorry that you thought my post was rude, but please consider the following:

1. Google never intended a single user's email account to act as an SMTP service for their web application.
2. New users are not binding their production portal instances to GMail, they are only doing it in test or simulation environments to get the portal working.
3. Information about binding Liferay to GMail has been covered over and over again in the forum. If users had followed some common sense rules (i.e. search before posting), they would find all of the threads (including this one) to help them out.
4. Most of the time users posting "I cannot connect my Liferay to GMail" are not willing to do any of the research themselves. They start on their own, hit a blocking point, then post to the forum rather than doing the research to solve their problem which, in fact, has already been solved many times before.

As a new member, I'm sure you see the overwhelming complexity in Liferay and wonder if you'll ever figure it out on your own. Facing this complexity, my comments may seem harsh and/or rude. Note, however, I'm on your side; I'm sure that, given time, you will become more experienced and honestly hope that, when that time comes, you too will participate in the forums to help share your knowledge.

And I honestly hope that, when that day comes, that you too can sift through the questions that come up over and over again yet have the restraint that you believe I lack. If you can suffer through the "How do I create a Hash Map in Liferay" or the ever present "How do I connect Liferay to GMail" and not tell the poster to try a search because it's been solved before and, btw, stop reopening a post that's well over a year old, then you'll prove to be a better man than I.

It's been over 8 years since I've joined the Liferay forums and over 20 years on many different internet forums (anyone else here remember usenet?). I received the same sort of indoctrination, figuring out that yes, I did need to search for a solution before just posting, and yes I did need to do my own research, etc.

After 8 years I'm still here, I'm still helping folks that come with new or different questions and yes, I still harangue them when they rehash old topics/threads. I see that you've joined today, and I welcome you. And I look forward to following your posts in 2022 here on the forums to see just how much patience and restraint you have when posting.
Luis Alberto Quispe Saltachin
RE: configuration smtp gmail
2014/02/20 10:17
答え

Luis Alberto Quispe Saltachin

ランク: New Member

投稿: 2

参加年月日: 2013/10/23

最近の投稿

I have the following issue is not whether it was the correct settings but send a description with the error that I have

portal-ext.properties
mail.configurationType=jndi
mail.session.jndi.name=mail/MailSession

root.xml

<Context path="" crossContext="true">
<!-- JAAS -->
<!--<Realm
className="org.apache.catalina.realm.JAASRealm"
appName="PortalRealm"
userClassNames="com.liferay.portal.kernel.security.jaas.PortalPrincipal"
roleClassNames="com.liferay.portal.kernel.security.jaas.PortalRole"
/>-->
<!--
Uncomment the following to disable persistent sessions across reboots.
-->
<!--<Manager pathname="" />-->
<!--
Uncomment the following to not use sessions. See the property
"session.disabled" in portal.properties.
-->
<!--<Manager className="com.liferay.support.tomcat.session.SessionLessManagerBase" />-->
<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.pop3.host=""
mail.pop3.port=""
mail.smtp.host="mail.dominio.gob.ar"
mail.smtp.port="465"
mail.smtp.user="admin@dominio.gob.ar"
password="password"
mail.smtp.auth="true"
mail.smtp.starttls.enable="false"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
mail.imap.host=""
mail.imap.port=""
mail.transport.protocol="smtp"
mail.store.protocol=""
/>
</Context>

11:57:28,285 ERROR [liferay/mail-1][MailEngine:570] Unknown SMTP host: mail.dominio.gob.ar
11:57:28,286 ERROR [liferay/mail-1][MailEngine:110] java.net.UnknownHostException: mail.dominio.gob.ar
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:513)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:331)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:400)
at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMessageListener.java:95)
at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageListener.java:110)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:678)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:589)
at java.lang.Thread.run(Thread.java:662)


I hope someone help me with this solution as it is very urgent thanks.
David H Nebinger
RE: configuration smtp gmail
2014/02/24 6:55
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11064

参加年月日: 2006/09/01

最近の投稿

Luis Alberto Quispe Saltachin:
11:57:28,285 ERROR [liferay/mail-1][MailEngine:570] Unknown SMTP host: mail.dominio.gob.ar


Your issue seems pretty clear to me...