How to prevent emails other than admin confirmation when granting Admin/Moderator access?

It worked! The emails are only being sent for admin_confirmation_message now. However, I also need to include the forgot password email so that admins can reset their passwords if needed.

Because I am using a dockerized version of Discourse, I can’t directly modify the source code file you mentioned.

Is there another way to allow the “forgot password” email—or other email types—to bypass this restriction? Currently, I need to allow admin_confirmation_message, forgot_password, and test_message. If there is a way to add these, I can use that same method to add others in the future as well.