NextCloud 16 + iRedMail (smpt 587)

Sorry in advance for my english

I want to connect to the NextCloud + iRedMail. But, I need to connect via 587 SMTP protocol.

The server is used without internet and used a self-signed certificate .

Instructions, how to fix the error did not give. Please tell me what information should I provide to solve the problem.