Server Administration and Email

Server Administration and Email

You can manage and monitor your Liferay instance from the server administration console. For example, you can view the current system or portal properties or configure logging and log levels. This is also where you can configure the email server for the whole system. See Using the Server Administration Panel to learn more.

Configure a mail server that is used for email notifications (e.g. user registration, password management, etc.). Follow the steps below to configure the mail server for Delectable Bonsai.

Configuring Mail in LXC

If this wasn’t already configured for you, contact your Liferay Cloud support person.

Configuring Mail in LXC-SM or Self-hosted

In real life, you’d already have a mail server for Liferay to use. Here, you’ll simulate one.

  1. Download FakeSMTP.

  2. Unzip the file. Start the FakeSMTP mail server with the following command:

    java -jar fakeSMTP-2.0.jar

  3. Set the listening port to 2525 and click Start server.

    Note, if using a docker container, the following env variables must be included in the your run command.

  4. In Liferay, navigate to Global Menu (Global Menu) → Control PanelServer Administration. Click the Mail tab.

  5. Set the following configuration.

    • Incoming POP Server: localhost
    • Incoming Port: 110
    • Use a Secure Network Connection: checked
    • User Name: [email protected]
    • Password: learn
    • Outgoing SMTP Server: localhost
    • Outgoing Port: 2525
    • Use a Secure Network Connection: checked
    • User Name: [email protected]
    • Password: learn

    Enter the settings for the mail server.

    Click Save.

  6. Navigate to Global Menu (Global Menu) → Control PanelInstance Settings. Click Email.

  7. In the left navigation, click Email Sender. Set the options below.

    Click Save.

  8. Navigate to Global Menu (Global Menu) → Control PanelUsers and Organizations. Click Add User (Add icon).

  9. Enter the following account information:

    • Screen Name: alan
    • Email Address: [email protected]
    • First Name: Alan
    • Last Name: Adams
    • Job Title: Sales & Marketing Manager

    Click Save.

  10. Liferay has sent a welcome email to Alan Adams.

    Liferay has sent a welcome email.

Your Liferay environment is now configured with a mail server. You can further customize mail to configure different email senders and messages for each instance. See Instance Email Settings to learn more.

Relevant Concepts