Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Steve Van Domelen
E-mail configuration for 5.2.3 for password changes
June 21, 2009 6:38 PM
Answer

Steve Van Domelen

Rank: New Member

Posts: 16

Join Date: June 21, 2009

Recent Posts

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.
Bryan Cheung
RE: E-mail configuration for 5.2.3 for password changes
June 23, 2009 12:59 AM
Answer

Bryan Cheung

LIFERAY STAFF

Rank: Expert

Posts: 359

Join Date: August 26, 2004

Recent Posts

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
Steve Van Domelen
RE: E-mail configuration for 5.2.3 for password changes
June 23, 2009 12:05 PM
Answer

Steve Van Domelen

Rank: New Member

Posts: 16

Join Date: June 21, 2009

Recent Posts

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
RE: E-mail configuration for 5.2.3 for password changes
June 30, 2009 8:30 PM
Answer

David Marshall

Rank: New Member

Posts: 1

Join Date: June 22, 2009

Recent Posts

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
Steve Van Domelen
RE: E-mail configuration for 5.2.3 for password changes
July 1, 2009 1:12 AM
Answer

Steve Van Domelen

Rank: New Member

Posts: 16

Join Date: June 21, 2009

Recent Posts

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.
Secret Developer
RE: E-mail configuration for 5.2.3 for password changes
July 14, 2009 5:41 AM
Answer

Secret Developer

Rank: Expert

Posts: 278

Join Date: June 23, 2009

Recent Posts

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
RE: E-mail configuration for 5.2.3 for password changes
June 12, 2012 5:03 AM
Answer

omer 345621

Rank: Junior Member

Posts: 54

Join Date: May 9, 2012

Recent Posts

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"
Attachment

Attachments: d.jpg (195.3k)