Self-hosted gitlab mattermost smtp settings with ovh

Summary

Email login confirmation are not received.

Steps to reproduce

Version de Mattermost : 5.30.6{PATCH}
Version du schéma de la base de données : 5.30.0
Base de données : postgres

I am on a self hosted instance : gitlab+mattermost. no docker
I want to use an email from ovh provider.

Expected behavior

I enabled the email verification on signup.
I expected to received email when registering a new user.

Observed behavior

The email to verify mail address are not received.

revelant log are

{“level”:“error”,“ts”:1612530199.377451,“caller”:“mlog/log.go:229”,“msg”:“Connection unsuccessful: SendMail: Failed to close connection to SMTP server., 550 5.7.60 SMTP; Client does not have permissions to send as this sender”,“path”:"*****",“request_id”:“s5pirdpsajdw7y8f6nz9x6pqby”,“ip_addr”:“127.0.0.1”,“user_id”:“gn5pawcps3b88gauunmcw38dto”,“method”:“POST”,“err_where”:“testEmail”,“http_code”:500,“err_details”:""}

Testing from system console > Email settings
SendMail: Failed to close connection to SMTP server., 550 5.7.60 SMTP; Client does not have permissions to send as this sender

i saw [SOLVED] SMTP settings missing in Gitlab-ce
but mattermost[‘email* settings are not recognized.

Could you help me to troubleshoot this .

gitlab have some trick to trouble shoot

Notify.test_email('destination_email@address.com', 'Message Subject', 'Message Body').deliver_now

and this work with above settings for gitlab.

Does mattermost have some console command to trouble shoot like gitlab?

revelant config (password obfucated)
/etc/gitlab/gitlab.rb
gitlab_rails[‘smtp_enable’] = true
gitlab_rails[‘smtp_address’] = “ssl0.ovh.net
gitlab_rails[‘smtp_port’] = 465
gitlab_rails[‘smtp_user_name’] = “correct_email”
gitlab_rails[‘smtp_password’] = “*****”
gitlab_rails[‘smtp_domain’] = “ssl0.ovh.net
gitlab_rails[‘smtp_authentication’] = “login”
gitlab_rails[‘smtp_enable_starttls_auto’] = true
gitlab_rails[‘smtp_tls’] = true

gitlab_rails[‘gitlab_email_from’] = ‘correct_email’
gitlab_rails[‘gitlab_email_display_name’] = ‘correct_email’
gitlab_rails[‘gitlab_email_reply_to’] = ‘correct_email’

revelant config 2
/var/opt/gitlab/mattermost/config.json
“EmailSettings”: {
“EnableSignUpWithEmail”: true,
“EnableSignInWithEmail”: true,
“EnableSignInWithUsername”: true,
“SendEmailNotifications”: true,
“UseChannelInEmailNotifications”: false,
“RequireEmailVerification”: true,
“FeedbackName”: “chatons-vaucluse-libre”,
“FeedbackEmail”: “correct_email”,
“ReplyToAddress”: “correct_email”,
“FeedbackOrganization”: “”,
“EnableSMTPAuth”: true,
“SMTPUsername”: “correct_email”,
“SMTPPassword”: “***”,
“SMTPServer”: “ssl0.ovh.net”,
“SMTPPort”: “465”,
“SMTPServerTimeout”: 10,
“ConnectionSecurity”: “TLS”,
“SendPushNotifications”: true,

“PushNotificationContents”: “full”,
“PushNotificationBuffer”: 1000,
“EnableEmailBatching”: true,
“EmailBatchingBufferSize”: 256,
“EmailBatchingInterval”: 30,
“EnablePreviewModeBanner”: false,
“SkipServerCertificateVerification”: true,
“EmailNotificationContentsType”: “full”,
“LoginButtonColor”: “#0000”,
“LoginButtonBorderColor”: “#2389D7”,
“LoginButtonTextColor”: “#2389D7
},