Skip to content

A platform for community discussion. Free, open, simple.

FIX: remove validation check when using SMTP TLS-on-connect

Michael Browne2d86f39ef09
diff --git a/app/services/email_settings_validator.rb b/app/services/email_settings_validator.rb
index 0d2ee6899f3..9c75d5bde9b 100644
--- a/app/services/email_settings_validator.rb
+++ b/app/services/email_settings_validator.rb
@@ -80,10 +80,6 @@ class EmailSettingsValidator
debug: Rails.env.development?
)
begin
- if enable_tls && enable_starttls_auto
- raise ArgumentError, "TLS and STARTTLS are mutually exclusive"
- end
-
if username || password
authentication = SmtpProviderOverrides.authentication_override(host) if authentication.nil?
authentication = authentication.to_sym