Foros de discusión

E-mail configuration for 5.2.3 for password changes

thumbnail
Steve Van Domelen, modificado hace 14 años.

E-mail configuration for 5.2.3 for password changes

New Member Mensajes: 16 Fecha de incorporación: 22/06/09 Mensajes recientes
I have installed and configured our server running 5.2.3 on CentOS 5.3 using mysql and tomcat 6.0. Everything appears to be working as expected except for E-mail notifications. From my reading, the solution is:

1. Make changes to the portal-exp.properties file
2. Restart tomcat

My file is /opt/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT/WEB-INF/classes/portal-exp.properties
The file contents are as follows:

=========================================================
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/liferay?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=<db_name>
jdbc.default.password=<db_password>

mail.session.mail.imap.host=<FQDN_of_my_MyExchangeServer>
mail.session.mail.pop3.host=<FQDN_of_my_MyExchangeServer>
mail.session.mail.smtp.host=<FQDN_of_my_MyExchangeServer>
#mail.session.mail.smtp.password=
#mail.session.mail.smtp.user=
mail.session.mail.store.protocol=smtp
mail.session.mail.transport.protocol=smtp
=========================================================

I have used a network sniffer and I can confirm that no packets are exchanged between my Liferay server and my Exchange server.

I have seen lots of posts/questions/comments about all of this, but no satisfactory answer that works for everyone. Surely, there must be a simple way to get this to work. Products like Wordpress, Foswiki and others can be configured to come up and run in minutes through the admin UI.

Appreciate any help that can resolve this simple situation.
thumbnail
Bryan Cheung, modificado hace 14 años.

RE: E-mail configuration for 5.2.3 for password changes

Expert Mensajes: 373 Fecha de incorporación: 27/08/04 Mensajes recientes
Steve,

Have you tried the new mail configuration options in the Control Panel?

http://www.liferay.com/web/brett.swaim/blog/-/blogs/new-way-to-change-pop-smtp-settings
thumbnail
Steve Van Domelen, modificado hace 14 años.

RE: E-mail configuration for 5.2.3 for password changes

New Member Mensajes: 16 Fecha de incorporación: 22/06/09 Mensajes recientes
Bryan,
I have tried the control panel as you suggest, but that does not help. The real problem is that password change notifications do not go out. The account creation notification works fine. If a user clicks on "forgot password", that E-mail will be sent. This is not a mail configuration problem, but an issue with the password change notification. I have talked with another administrator and he is showing the exact same symptoms. I am using 5.2.3 with Tomcat 6.0 bundle on 32-bit CentOS 5.3.
David Marshall, modificado hace 14 años.

RE: E-mail configuration for 5.2.3 for password changes

New Member Mensaje: 1 Fecha de incorporación: 22/06/09 Mensajes recientes
I've found many portlets have their own e-mail configuration settings. The only place that I've found to set them is in portal-ext.properties. These are what I've seen so far.

##
## Admin Portlet
##
#
# Configure email notification settings.
#
admin.email.from.name=some name
admin.email.from.address=somebody@somedomain.com

admin.email.user.added.enabled=true
admin.email.password.sent.enabled=true

##
## Announcements Portlet
##

#
# Configure email notification settings.
#
announcements.email.from.name=some name
announcements.email.from.address=somebody@somedomain.com

announcements.email.to.name=
announcements.email.to.address=noreply@somedomain.com

##
## Calendar Portlet
##

#
# Configure email notification settings.
#
calendar.email.from.name=some name
calendar.email.from.address=somebody@somedomain.com

calendar.email.event.reminder.enabled=true

##
## Communities Portlet
##

#
# Configure email notification settings.
#
communities.email.from.name=some name
communities.email.from.address=somebody@somedomain.com

##
## Flags Portlet
##

#
# Email Notification Settings
#
flags.email.from.name=some name
flags.email.from.address=somebody@somedomain.com

##
## Journal Portlet
##

#
# Configure email notification settings.
#
journal.email.from.name=some name
journal.email.from.address=somebody@somedomain.com

##
## Message Boards Portlet
##

#
# Configure email notification settings.
#
message.boards.email.from.name=some name
message.boards.email.from.address=somebody@somedomain.com
message.boards.email.html.format=true

message.boards.email.message.added.enabled=true
message.boards.email.message.updated.enabled=true

##
## Wiki Portlet
##

#
# Configure email notification settings.
#
wiki.email.from.name=some name
wiki.email.from.address=somebody@somedomain.com

wiki.email.page.added.enabled=true
wiki.email.page.updated.enabled=true
thumbnail
Steve Van Domelen, modificado hace 14 años.

RE: E-mail configuration for 5.2.3 for password changes

New Member Mensajes: 16 Fecha de incorporación: 22/06/09 Mensajes recientes
David,
While good information, that is not relevant to this topic. Changing the user password is part of the portal and not linked to a particular portlet.

The real question about the password notification E-mail is whether or not it is intended to be transmitted when a user changes their password. If so, then this functionality is not working. If this is only meant when a user executes the "forgot password" option, then this is OK. Guess we need clarification on the intent.
Baris Sener, modificado hace 14 años.

RE: E-mail configuration for 5.2.3 for password changes

Expert Mensajes: 278 Fecha de incorporación: 23/06/09 Mensajes recientes
Everything is a portlet in Liferay my friend. Play with the settings David gave, you should be able to fix it.

Changing your password could be "my account portlet" , "enterprise admin portlet" etc.

Baris
omer 345621, modificado hace 11 años.

RE: E-mail configuration for 5.2.3 for password changes

Junior Member Mensajes: 54 Fecha de incorporación: 9/05/12 Mensajes recientes
hey. I have question.

I can get new email notification from my company domain. But why cant i get notification from gmail or yahoo etc id from non secure port 25?

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"

Archivos adjuntos: