Foros de discusión

Creating new account: no password is sent to my mailbox

thumbnail
bougroun zineb zineb, modificado hace 16 años.

Creating new account: no password is sent to my mailbox

Junior Member Mensajes: 32 Fecha de incorporación: 16/04/08 Mensajes recientes
Hello,

When I create a new account there is no mail sent to my mailbox “hotmail” ans I get a warning like :
WARN[MailEngine:366] Failed to connect to a valid mail server. Please make sure one is properly configured. Could not connect to SMTP host: localhost, port 25
Any idea?

Thank you.
Zineb.
Stan M, modificado hace 16 años.

RE: Creating new account: no password is sent to my mailbox

Regular Member Mensajes: 208 Fecha de incorporación: 28/01/08 Mensajes recientes
Things I would check :

1) $LP/conf/Catalina/localhost/ROOT.xml

<!-- Mail -->

<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="localhost"
mail.pop3.host="localhost"
mail.smtp.host="localhost"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
/>

- Ensure the mail server is started and able to take requests where Liferay is installed; otherwise, change the "localhost" to a valid mail server.

2) "Mail Domain" at Enterprise Admin portlet > Settings > General

---

The problem is more likely item 1. After Liferay is able to connect and the mail server is able to send emails, there is a chance your emails will still not reached you because of Microsoft's filters. If you use sendmail as your server, a message similar to the following is displayed in /var/log/maillog.

<timestamp> THE_SMTP_SERVER sendmail[5304]: m3IGQ2kJ005284: to=<EMAIL_ADDRESS>, ctladdr=<EMAIL_ADDRESS> (555/100), delay=00:01:22, xdelay=00:00:00, mailer=esmtp, pri=120314, relay=mx1.hotmail.com. [65.54.244.8], dsn=2.0.0, stat=Sent ( <20080418162545.M63425@DOMAIN.NAME> Queued mail for delivery)

Let me know when you are able send to your Hotmail or Live accounts, specifically, because I have not gotten it work. Microsoft is reviewing my case.
thumbnail
bougroun zineb zineb, modificado hace 16 años.

RE: Creating new account: no password is sent to my mailbox

Junior Member Mensajes: 32 Fecha de incorporación: 16/04/08 Mensajes recientes
Thank you Stan M for your response.

Someone told me that it can not work with hotmail because i don't have configuration about the mail server. And i must create a mail server with postfix or use gmail.com. I tried the second option.
I chaged the root.xml to:
<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="localhost"
mail.pop3.host="localhost"
mail.smtp.auth="true"
mail.smtp.user="myuserName"
mail.smtp.host="smtp.gmail.com"
password="myPassword"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
/>

And i changed the mail domaine at Enterprise Admin portlet > Settings > General to "gmail.com"

Now i don't get the warning from tomcat. But my mail never reach the destination.

i hope that someone can help me.emoticon
thumbnail
Michael Saechang, modificado hace 16 años.

RE: Creating new account: no password is sent to my mailbox

Liferay Master Mensajes: 576 Fecha de incorporación: 19/11/07 Mensajes recientes
moved to Using Liferay.


Hey bougroun,

try this...



<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="username"
password="password"

mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>



If your email is "TEST@gmail.com", for Username just put TEST and not TEST@gmail.com

-mike
thumbnail
bougroun zineb zineb, modificado hace 16 años.

RE: Creating new account: no password is sent to my mailbox

Junior Member Mensajes: 32 Fecha de incorporación: 16/04/08 Mensajes recientes
when i tried your answer i got the same warning:

[MailEngine:366] Failed to connect to a valid mail server. Please make
sure one is properly configured. Could not connect to SMTP host: smtp.gmail.com, port 465.
thumbnail
Julio Camarero, modificado hace 15 años.

RE: Creating new account: no password is sent to my mailbox

Liferay Legend Mensajes: 1668 Fecha de incorporación: 15/07/08 Mensajes recientes
I tried what Michael said and it worked perfectly. Thank you!

<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="username"
password="password"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>
Kevin Matthews, modificado hace 11 años.

RE: Creating new account: no password is sent to my mailbox

Junior Member Mensajes: 38 Fecha de incorporación: 23/05/12 Mensajes recientes
I am getting the same problem too. I updated the ROOT.xml in the catalina folder but I got this error message bewlo:

Initializing com.liferay.portal.captcha.simplecaptcha.SimpleCaptchaImpl
Failed to connect to a valid mail server. Please make sure one is properly configured. Could not connect to SMTP host: localhost, port: 0
<context>
<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="username"
password="password"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>
</context>

</Context>
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Creating new account: no password is sent to my mailbox

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Kevin, you're replying to a very old thread. Most of these properties can be set in portal-ext.properties files now.

#
# Set the properties used to create the Java Mail session. The property
# prefix "mail.session." will be removed before it is used to create the
# session object. These properties will only be read if the property
# "mail.session.jndi.name" is not set.
#
mail.session.mail.pop3.host=localhost
mail.session.mail.pop3.password=
mail.session.mail.pop3.port=110
mail.session.mail.pop3.user=
mail.session.mail.smtp.auth=false
mail.session.mail.smtp.host=localhost
mail.session.mail.smtp.password=
mail.session.mail.smtp.port=25
mail.session.mail.smtp.user=
mail.session.mail.store.protocol=pop3
mail.session.mail.transport.protocol=smtp

##
## Google Apps
##

#
# Set the default user name and password for Google Apps integration. The
# domain used by Google Apps is retrieved from the portal's mail domain.
# See http://code.google.com/apis/apps for more information.
#
# Google Apps integration is not used unless the property "mail.hook.impl"
# is set with the value "com.liferay.mail.util.GoogleHook".
#
google.apps.username=
google.apps.password=
Kevin Matthews, modificado hace 11 años.

RE: Creating new account: no password is sent to my mailbox

Junior Member Mensajes: 38 Fecha de incorporación: 23/05/12 Mensajes recientes
Hi Hitoshi, I added those settings in portal-ext.properties but it seems liferay is ignoring those readings in my properties. Could this be because i created a hook to override my create_account.jsp (\html\portlet\login\creat_account.jsp)? I get error message below:

15:33:57,843 INFO [CaptchaImpl:127] Initializing com.liferay.portal.captcha.simplecaptcha.SimpleCaptchaImpl
15:34:23,201 WARN [MailEngine:500] Failed to connect to a valid mail server. Please make sure one is properly configured. Could not connect to SMTP host: localhost, port: 0


Please advise


Thanks
Kevin