Configuring Default Email Senders

By default, emails sent by Liferay DXP use the name and email address as the default admin user. This behavior can be configured for each of the different email types. Some applications don’t use the default email sender, and you must configure their email senders independently. You can configure email senders through the UI or through their individual portal properties.

Note

Default values for these applications’ email senders are set in the portal properties.

Changing the Default Email Sender

  1. Open the Global Menu and navigate to the Control PanelConfigurationInstance Settings.

    Locating the Email configuration option in the Instance Settings menu.

  2. Click Email.

  3. Click Email Sender.

  4. Enter your values for the following fields:

    • Name
    • Address

    Changing the default email sender name and email address.

  5. Click Save.

Changing the Email Sender for Web Content

  1. Navigate to Control PanelInstance SettingsWeb Content.

  2. Go to Service.

  3. Set your values in Email from Name and Email from Address.

  4. Scroll down to the bottom of the page and click Save.

Changing the Email Sender for Knowledge Base

  1. Navigate to Control PanelInstance SettingsKnowledge Base.

  2. Scroll down to Email from Name and Email from Address. Set your values here.

  3. Scroll down to the bottom of the page and click Save.

Changing the Email Sender for Wiki

  1. Navigate to Control PanelInstance SettingsWiki.

  2. Set your values in Email from Name and Email from Address.

  3. Scroll down to the bottom of the page and click Save.

Changing the Email Sender for Bookmarks

  1. Navigate to Control PanelInstance SettingsCommunity Tools.

  2. Go to Bookmarks.

  3. Set your values in Email from Name and Email from Address.

  4. Scroll down to the bottom of the page and click Save.

Changing the Email Sender for Comments

  1. Navigate to Control PanelInstance SettingsComments.

  2. Set your values in Email from Name and Email from Address.

  3. Scroll down to the bottom of the page and click Save.

Changing the Email Sender for Flags

  1. Navigate to Control PanelInstance SettingsCommunity Tools.

  2. Set your values in Email from Name and Email from Address.

  3. Scroll down to the bottom of the page and click Save.

Changing the Email Sender for Reports

  1. Navigate to Control PanelInstance SettingsReports.

  2. Set your values in Email from Name and Email from Address.

  3. Scroll down to the bottom of the page and click Save.

Changing the Email Sender for Multi-Factor Authentication

  1. Navigate to Control PanelInstance SettingsComments.

  2. Set your values in Template for Email “From” Field and Email from Name .

  3. Scroll down to the bottom of the page and click Save.

Using Portal Properties to Configure the Default Email Sender

The default email sender can also be configured using a portal-ext.properties file. The following property values can be replaced with your own:

admin.email.from.name=Joe Bloggs
admin.email.from.address=test@domain.invalid
Important

Once you change an email sender via the UI, you can no longer modify it through portal-ext.properties.

Using Portal Properties to Override the Default Email Sender for a Specific Application

You can override some applications’ default email senders using a portal-ext.properties file. Here’s an example for the blogs service:

blogs.email.from.name=
blogs.email.from.address=
ApplicationName PropertyAddress Property
Blogsblogs.email.from.nameblogs.email.from.address
Document Librarydl.email.from.namedl.email.from.address
Loginlogin.email.from.namelogin.email.from.address
Message Boardsmessage.boards.email.from.namemessage.boards.email.from.address
Sitessites.email.from.namesites.email.from.address
Workflowworkflow.email.from.nameworkflow.email.from.address

Changing the Email Sender for Announcements

Announcements don’t use the default email sender. To configure the sender name and address for announcement emails you must use a portal-ext.properties file. Replace the following property values with your own:

announcements.email.to.name=
announcements.email.to.address=noreply@domain.invalid

Blacklisted Emails

The following emails are blacklisted by default and cannot be used in any DXP installation:

  • noreply@liferay.com
  • test@liferay.com
  • noreply@domain.invalid
  • test@domain.invalid

Attempts to use the above emails result in a logged WARN trace:

Email xxx will be ignored because it is included in mail.send.blacklist

You can configure this list using the mail.send.blacklist property.

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy