Snappymail/dovecot crashes and modifies config file

Hey Cyberpanel Community :slight_smile:
we have a really strange issue with our cyberpanel server.

Cyberpanel details:
Current Version:
Current Commit:

After a couple of days the mailing services does not work anymore for all domains and clients we have added in cyberpanel.
This happened a couple of times now and we already did some investigation and the problem is located at the dovecot configuration file: /etc/dovecot/dovecot.conf

In cyberpanel there is an option to create a mail subdomain while adding a domain. We do not use this option, because it seems that there is a bug with this functionality. But for example if we add this domain (without email subdomain):

then cyberpanel automatically adds following entry in /etc/dovecot/dovecot.conf:

local_name {
ssl_cert = </etc/letsencrypt/live/
ssl_key = </etc/letsencrypt/live/

and after some time (we guess after server reboot) the email service does not work for all domains because dovecot is not able to find those files (because they do not exist).

At this point we have to delete all mail subdomains and all entries in the dovecot config file to get the mailing service running again, but after a couple of days the mailing service stops working again and then we check /etc/dovecot/dovecot.conf and for each domain a entry is added in this file again (but we did not do it). For some reason any service adds those entries although we did not select adding a mail subdomain for the domains.

Does anybody know why this happens and how to solve that?

Thanks for your help :slight_smile: