First of all I apologize that I have put my fingers in the wrong place as it is not natively integrated in HestiaCP.
Yesterday I installed sieve to have the filters in roundcube and dovecot stopped working, seeing that we could not restart the dovecot service I did a complete uninstall of sieve.
It seemed to work perfectly, but I’m afraid the problem is that now imap is not working, SMTP is working but I don’t receive emails in any of the domains I host.