<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Office365 Smtp Thread Limit Exceeded Error</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118246873" />
  <subtitle>Office365 Smtp Thread Limit Exceeded Error</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118246873</id>
  <updated>2026-05-07T16:01:20Z</updated>
  <dc:date>2026-05-07T16:01:20Z</dc:date>
  <entry>
    <title>RE: Office365 Smtp Thread Limit Exceeded Error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118268146" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118268146</id>
    <updated>2020-01-13T16:38:14Z</updated>
    <published>2020-01-13T16:38:14Z</published>
    <summary type="html">I googled the error and it seems to be indeed very uncommon and it looks like a feature of Microsoft.&lt;br /&gt;My best guess is that it isn&amp;#39;t configurable at all in javax mail and therefore, it can&amp;#39;t be fixed there (except by creating your own mail transport implementation which uses locking)&lt;br /&gt;@OP: Maybe you can change/extend some Liferay class. When you enable debug logging for the Mail related packages like&lt;br /&gt;com.liferay.petra.mail&lt;br /&gt;com.liferay.mail.service&lt;br /&gt;do you see a stacktrace? Maybe some of the classes there can be more or less easily replaced.&lt;br /&gt;If you have a linux server I would set up postfix and route the mail traffic through the local server. That helped me several times before since postfix is very flexible. While it can be a bit overwhelming, just dispatching mails to another smtp server is not really hard to configure.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-01-13T16:38:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Office365 Smtp Thread Limit Exceeded Error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118266264" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118266264</id>
    <updated>2020-01-13T15:12:27Z</updated>
    <published>2020-01-13T15:12:27Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Christoph Rabel:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Is there really a mail transport implementation that allows you to limit the number of threads/parallel message? Could be, but I never saw a parameter for that.&lt;br /&gt;&lt;/blockquote&gt;I can neither confirm nor deny. I just can state that &lt;em&gt;if&lt;/em&gt; it is configurable, it would rather be &lt;em&gt;there&lt;/em&gt; than in Liferay&amp;#39;s properties.&lt;br /&gt;Sorry, I didn&amp;#39;t check upfront if that is indeed a parameter. But if it isn&amp;#39;t configurable here, this would be a strong indicator that the issue is elsewhere and concurrent threadcount is rarely limited.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-01-13T15:12:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: Office365 Smtp Thread Limit Exceeded Error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118267381" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118267381</id>
    <updated>2020-01-13T13:41:16Z</updated>
    <published>2020-01-13T13:41:16Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Olaf Kock:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;Kleanthis Savva:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;The Actual emails are 43 exactly as many as my Liferay users and error points to smtp threads and not emails per minute to be honest. I think if there is a way for me to limit smtp connections to 1 it will be ok. Can i somehow do this?&lt;/blockquote&gt;You can try &lt;a href="https://docs.liferay.com/portal/7.2-latest/propertiesdoc/portal.properties.html#Mail"&gt;setting mail.session.jndi.name&lt;/a&gt; instead of the individual host/user/password settings and configure the Mail connection through your appserver - there you have all parameters available.&lt;/blockquote&gt;Is there really a mail transport implementation that allows you to limit the number of threads/parallel message? Could be, but I never saw a parameter for that.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-01-13T13:41:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: Office365 Smtp Thread Limit Exceeded Error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118261067" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118261067</id>
    <updated>2020-01-13T08:17:05Z</updated>
    <published>2020-01-13T08:17:05Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Kleanthis Savva:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;The Actual emails are 43 exactly as many as my Liferay users and error points to smtp threads and not emails per minute to be honest. I think if there is a way for me to limit smtp connections to 1 it will be ok. Can i somehow do this?&lt;/blockquote&gt;You can try &lt;a href="https://docs.liferay.com/portal/7.2-latest/propertiesdoc/portal.properties.html#Mail"&gt;setting mail.session.jndi.name&lt;/a&gt; instead of the individual host/user/password settings and configure the Mail connection through your appserver - there you have all parameters available.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-01-13T08:17:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: Office365 Smtp Thread Limit Exceeded Error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118260725" />
    <author>
      <name>Kleanthis Savva</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118260725</id>
    <updated>2020-01-13T07:12:30Z</updated>
    <published>2020-01-13T07:12:30Z</published>
    <summary type="html">The Actual emails are 43 exactly as many as my Liferay users and error points to smtp threads and not emails per minute to be honest. I think if there is a way for me to limit smtp connections to 1 it will be ok. Can i somehow do this?</summary>
    <dc:creator>Kleanthis Savva</dc:creator>
    <dc:date>2020-01-13T07:12:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: Office365 Smtp Thread Limit Exceeded Error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118251073" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118251073</id>
    <updated>2020-01-10T15:07:11Z</updated>
    <published>2020-01-10T15:07:11Z</published>
    <summary type="html">Hard to say. Are you actually sending so many mails at once/parallel? Maybe you could change the office 365 quota?&lt;br /&gt;I am not sure this can be solved in Liferay at all. The problem is that multiple quotas, like max. 150 mails per hour can usually be configured in smtp servers. And tracking and managing those limits is not trivial.&lt;br /&gt;I would probably solve this using a local smtp gateway (in my case postfix because I know it a bit). Liferay -&amp;gt; local smtp -&amp;gt; Office365 SMTP. While I am not postfix expert it should be possible to throttle it. It also automatically retries for a couple of days, so usually all mails should be sent. Of course, the queue might grow and grow, but in that case, a fix will never be possible since you are trying to send more mails than you are allowed too.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-01-10T15:07:11Z</dc:date>
  </entry>
  <entry>
    <title>Office365 Smtp Thread Limit Exceeded Error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118246872" />
    <author>
      <name>Kleanthis Savva</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118246872</id>
    <updated>2020-01-10T13:19:16Z</updated>
    <published>2020-01-10T13:19:16Z</published>
    <summary type="html">Hello ,&lt;br /&gt;I have successfully setup office365 account to use for my notifications in liferay portal.&lt;br /&gt;When i do send the notifications i get the following error though :&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;Unable to send message: 432 4.3.2 STOREDRV.ClientSubmit; sender thread limit exceeded [Hostname=AM7P189MB0993.EURP189.PROD.OUTLOOK.COM]_ [Sanitized]&lt;br /&gt;com.sun.mail.smtp.SMTPSendFailedException: 432 4.3.2 STOREDRV.ClientSubmit; sender thread limit exceeded [Hostname=AM7P189MB0993.EURP189.PROD.OUTLOOK.COM]_ [Sanitized]&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Is there any way to reduce the max threads java mail uses ? Or somehow overcome this error ?</summary>
    <dc:creator>Kleanthis Savva</dc:creator>
    <dc:date>2020-01-10T13:19:16Z</dc:date>
  </entry>
</feed>
