Cant send Mail Reason: “Smtp.ConnectAsync timeout” using OnlyOffice Mail Server

Do you want to: Ask a how-to question

For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem:
The same problem as in the message Cant send Mail Reason: "Smtp.ConnectAsync timeout" using OnlyOffice Mail Server

Community Server/Control Panel version: 12.7.0.1936 \ 3.5.3.538
Type of installation of Workspace docker
OS: Ubuntu 24.04
Browser version:
Additional information:

The same problem as in the message Cant send Mail Reason: "Smtp.ConnectAsync timeout" using OnlyOffice Mail Server

Please concat me

Hello @alleks

Please specify if you installed mail server as per instruction:
https://helpcenter.onlyoffice.com/installation/mail-install-docker.aspx

Also, please make sure that port 25 is opened and MX record is properly set up.

Everything is correct, the installation followed the instructions sent above. Through a script specifying the DNS name of the server.
The server has a DNS record - mx.mydomain.com
Mail domain - @mydomain.com

Port 25 is open on the server and is welcomed by dovecont
Dig outputs correct data

Did you face any warnings adding a domain name in the Settings > Mail Server > Add domain? Please double check and share screenshots. Also, please archive all logs of the portal and share them for analysis.