Mailroom Certicate SSL issue

Problem

I’m trying to enable “incoming mail” and “service desk” services. But mail room restarts every 5 seconds with error.
I tried Microsoft Graph and IMAP but both show the same error.

/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:46:in `connect_nonblock’: SSL_connect returned=1 errno=0 peeraddr=52.97.78.146:993 state=error: certificate verify failed (unable to get local issuer certificate) (OpenSSL::SSL::SSLError)

When I try using IMAP:

/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/net-protocol-0.2.2/lib/net/protocol.rb:46:in `connect_nonblock’: SSL_connect returned=1 errno=0 peeraddr=40.126.45.18:443 state=error: certificate verify failed (unable to get local issuer certificate) (OpenSSL::SSL::SSLError)

Microsoft Graph:

I already updated the S.O ca-certificates.

Versions

  • Self-managed

Versions

  • GitLab: Version: 17.7.2-ee