[BUG] Renewing certificates with Let's Encrypt destroys Postfix/Dovecot configuration

SYSTEM INFORMATION
OS type and version Debian 12
Webmin version 2.303
Virtualmin version 7.30.8

Hi,

For a couple of weeks now, I get a strange behavior:
Whenever there’s an automated let’s encrypt ssl renewal OR when I request it manually, the related ssl coniguration in config files of postfix and dovecot gets screwed.
Mainly:
/etc/dovecot/dovecot.conf
/etc/postfix/master.cf
/etc/postfix/sender_dependent_default_transport_maps
/etc/postfix/sni_map

I also try to use the “Copy SSL Certificate to Services” but nothing happens.
If I correct the configurations in the above files manually, adding the missing lines, then this button turns to “Remove SSL Certificate from Services” on his own.

I don’t get any relevant logs, so I’m wondering what’s happening behind the scenes. 'cause this breaks all the “mail chain” afterwards (and maybe other things I don’t realize).

Thanks !

I don’t know what “gets screwed” means. You’ve got to be specific. We need to see the actual error(s) and whatever config files are wrong.

Are you saying the old cert gets deleted and the new one isn’t added to these files?