Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-105994

Emails sent by Liferay do not have a unique Message-ID

Details

    Description

      For system emails related to user accounts, a unique message ID is not generated, so for some email servers like MS Exchange, one email will be dropped.

      This goes against the RFC 288 standard:

      3.6.4. Identification fields

      Though optional, every message SHOULD have a "Message-ID:" field.
      ...

      The "Message-ID:" field contains a single unique message identifier.

      For messages related to message boards, this is already done by using the timestamp from the modified date of the message.  This ensures all message IDs send over email are unique.

      Steps to reproduce:

      1. Configure a clean bundle to use your gmail account :

      A. Navigate to: Control Panel > Configuration > Server Admin > Mail
      B. Change these settings to your email address:
      
      Incoming POP Server: pop.gmail.com
      Incoming Port: 995
      Use a Secure Network Connection: Checked
      User Name: Your email address
      Password: The password to your email account
      
      Outgoing SMTP Server: smtp.gmail.com
      Outgoing Port: 465
      Use a Secure Network Connection: Checked
      User Name: Your email address
      Password: The password to your email account

      2. Go to Control Panel > Configuration > Instance Settings > Email > Email Sender.
      3. Change the Address field to the email used as a mail server.  Save.
      4. Go to Control Panel > Users > Users and Organizations
      5. Add a new user.
      6. Reset the user's password, checking the "Require Password Reset" option.
      7. Log into the email server account setup in step 1.
      8. Go to the "Sent" folder"
      9. View the message IDs of the two messages sent to the newly created user (one for account creation, one for password reset).

      Expected results: Message IDs are unique.

      Actual Results: Message IDs are the same (unique per-user, not per-user's notifications).

      Reproduced on master: ae69e39b628a47ee4a64eaff6ab69855a7e3a5cf

      Attachments

        Activity

          People

            hong.zhao Hong Zhao (Inactive)
            christopher.kian Christopher Kian
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 43 weeks, 5 days ago

              Packages

                Version Package
                7.0.0 DXP FP91
                7.0.10.14 DXP SP14
                7.0.X
                7.1.10 DXP FP17
                7.1.10.4 SP4
                7.1.X
                7.2.10 DXP FP4
                7.2.X
                7.3.0 CE GA1
                7.3.4 CE GA5
                7.3.10 DXP GA1
                Master