Defect #31957

ActionMailer need to limit how many maximum connections it opens

Added by strhuan blomquist over 1 year ago. Updated over 1 year ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:Email notifications
Target version:-
Resolution: Affected version:4.0.2


Microsoft office 365 smtp server has made some changes that will cause
this error message

Email delivery error: 432 4.3.2 STOREDRV.ClientSubmit; sender thread limit exceeded

New throttling limit for concurrent connections that submit messages
The service has various limits to prevent abuse and to ensure fair use. An additional limit is being added. Under the new limit, up to three concurrent connections are allowed to send email messages at the same time. If an application tries to send more than three messages at the same time by using multiple connections, each connection will receive the following error message:

432 4.3.2 STOREDRV.ClientSubmit; sender thread limit exceeded

other projects have worked around it by introducing a
maxConnections: 3 limitation to there mailers

my setup

Redmine version 4.0.2.stable
Ruby version 2.6.1-p33 (2019-01-30) [x86_64-linux]
Rails version 5.2.2
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp


#1 Updated by Go MAEDA over 1 year ago

Could you try again after adding the following lines to config/additional_environment.rb?

config.active_job.queue_adapter = \
    max_threads: 3

#2 Updated by strhuan blomquist over 1 year ago

Thanks for the quick response.
so far this seems to have fixed it will keep track during the day.

#3 Updated by strhuan blomquist over 1 year ago

The problem seems fixed so far. So there a way in the future to only make this affect the mailer. I guess this is now a global settings to any class that wants to use the ActiveJob::QueueAdapters::AsyncAdapter.

Also available in: Atom PDF