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

Outgoing SMTP Server Settings Not Propagating Across Cluster Nodes

    Details

      Description

      Description:
      After changing the credentials for their outgoing SMTP Server server, the nodes in the cluster attempt to send mail from different email addresses. It appears that the changes made in one node do not propagate to the others since one will send the message from the new SMTP server and the other will use the original. One work around is to manually change the SMTP server on each node, but this is not ideal.

      The reason this happens is because we store a _session variable inside of MailServiceImpl to keep track of all the settings. This variable is cleared whenever the settings are updated, but no messages are sent to the other nodes telling them to also clear this variable when this happens.

      Steps To Reproduce:

      1. Set up a cluster with 2 nodes
      2. Configure the email settings against an outgoing SMTP server under Server Administration -> Mail. In our case we were adjusting the User Name and Password.
      3. Use the attached script to test sending an email from the each node. Make sure the email is sent successfully from both nodes.
      4. Modify the user name so that it's no longer valid.
      5. Retest sending the emails.

      Expected Result: The email engine will use the new credentials and the email will fail from both nodes, with an AuthenticationFailedException.
      Actual Result: The email fails from node 1 but succeeds from node 2 since the previous credentials are still used in the 2nd server.

        Attachments

          Activity

            People

            • Assignee:
              raven.song Raven Song
              Reporter:
              michael.bowerman Michael Bowerman (Inactive)
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 30 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP33
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                7.1.0 M1
                7.1.X
                Master