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

Connections to mail server can remain open causing mail servers to run out of connections

    Details

      Description

      When the portal accesses the POP server using mail accounts configured into individual MessageBoard portlet mailing lists, it opens a session and then closes it again each time. But when using the mail account configured in Server Administration->Mail, the portal opens a new session on the POP server every minute and never closes it.

      Steps
      1. Navigate to Control Panel > Server Administration > Mail.
      2. Enter connection data for the mail server.
      3. Check the sessions on the mail server.

      Expected
      Connections will be closed.
      Actual
      Connections remain open and in some mail servers Liferay will fail to connect after too many connections are opened with the following exception.

      18:30:45,288 ERROR [liferay/scheduler_dispatch-5][ParallelDestination:74] Unable to process message {destinationName=liferay/scheduler_dispatch, response=null, responseDestinationName=null, responseId=null, payload=null, values={groupId=0, STORAGE_TYPE=MEMORY_CLUSTERED, JOB_NAME=com.liferay.portal.pop.messaging.POPNotificationsMessageListener, EXCEPTIONS_MAX_SIZE=0, GROUP_NAME=com.liferay.portal.pop.messaging.POPNotificationsMessageListener, DESTINATION_NAME=liferay/scheduler_dispatch, JOB_STATE=com.liferay.portal.kernel.scheduler.JobState@4ed91bab, companyId=0, MESSAGE_LISTENER_CLASS_NAME=com.liferay.portal.pop.messaging.POPNotificationsMessageListener, RECEIVER_KEY=com.liferay.portal.kernel.scheduler.messaging.ReceiverKey@6cedf6e0, MESSAGE_LISTENER_UUID=33f83071-cb7d-488d-832c-4e5057d0cc00}}
      com.liferay.portal.kernel.messaging.MessageListenerException: javax.mail.AuthenticationFailedException: [SYS/TEMP] Maximum number of connections from user+IP exceeded (mail_max_userip_connections=10)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
              at sun.reflect.GeneratedMethodAccessor642.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
              at com.sun.proxy.$Proxy297.receive(Unknown Source)
              at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMessageListenerWrapper.java:77)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.mail.AuthenticationFailedException: [SYS/TEMP] Maximum number of connections from user+IP exceeded (mail_max_userip_connections=10)
              at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:146)
              at javax.mail.Service.connect(Service.java:275)
              at javax.mail.Service.connect(Service.java:156)
              at com.liferay.portal.pop.messaging.POPNotificationsMessageListener.initStore(POPNotificationsMessageListener.java:121)
              at com.liferay.portal.pop.messaging.POPNotificationsMessageListener.initInboxFolder(POPNotificationsMessageListener.java:72)
              at com.liferay.portal.pop.messaging.POPNotificationsMessageListener.pollPopServer(POPNotificationsMessageListener.java:168)
              at com.liferay.portal.pop.messaging.POPNotificationsMessageListener.doReceive(POPNotificationsMessageListener.java:52)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              ... 11 more
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              preston.crary Preston Crary
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 15 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M7