External smtp

Hey
and I try to set up a smtp. Only the problem is that it does not matter how I try not to work.

Host: mchost24
Settings:
gitlab_rails [‘smtp_enable’] = true
gitlab_rails [‘smtp_address’] = “cmail01.mc-host24.de
gitlab_rails [‘smtp_port’] = 25
gitlab_rails [‘smtp_user_name’] = “subdomain@my-domain.net
gitlab_rails [‘smtp_password’] = “mypasswort”
gitlab_rails [‘smtp_domain’] = “cmail01.mc-host24.de
gitlab_rails [‘smtp_authentication’] = “login”
gitlab_rails [‘smtp_enable_starttls_auto’] = true
gitlab_rails [‘smtp_tls’] = true
gitlab_rails [‘smtp_ssl’] = false
gitlab_rails [‘smtp_openssl_verify_mode’] = ‘none’

error after email test per console :
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol)

Try setting gitlab_rails [‘smtp_tls’] to false. The current value of true tells GitLab to initiate a connection via TLS, and on port 25 the smtp server expects a normal TCP connection which can then use STARTTLS to upgrade to TLS (enabled via gitlab_rails [‘smtp_enable_starttls_auto’] = true).

Alternatively you can keep the gitlab_rails [‘smtp_tls’] = true but change the gitlab_rails [‘smtp_port’] to 465 which is the submission over TLS port. That method will be a bit more secure since you’ll be starting with a TLS connection. You should also then set gitlab_rails [‘smtp_enable_starttls_auto’] to false as you won’t be using STARTTLS.

Use gitlab_rails[‘smtp_authentication’] = “plain”