Gitlab SMTP not work via external smtp

When gitlab try to send email via external smtp server, sidekiq mail queue crash with error like:

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

Fix for package installed gitlab:

Edit /etc/gitlab/gitlab.rb and add:

For ubuntu system wide ca bundle:

gitlab_rails …
more ...

Gitlab backup

On nfs server:

Add line to /etc/exports:

/backups/gitlab 10.10.10.10(rw,async,no_subtree_check,no_root_squash)

Reexport shares:

exportfs -rav

On gitlab server

Add line to /etc/fstab:

nfs.srv:/backups/gitlab /mnt/backups/gitlab nfs4 rw,sec=sys 0 0

Install dependencies and mount nfs share:

yum …
more ...