Dovecot doesn't work

I have installed Virtualmin, but Dovecot doesn’t work and I can’t use the webmail for sending and receive mail.

Information about the error:
Error in configuration file /etc/dovecot/dovecot.conf line 104: ssl_cert: Can’t open file /etc/ssl/virtualmin/171855994333478/ssl.combined: No such file or directory
Jun 17 11:31:18 systemd[1]: dovecot.service: Main process exited, code=exited, status=89/n/a

Can anyone help me?


OS type and version : Ubuntu 24.04.4
Webmin version : 2.111
Virtualmin version : 7.10.0
Related packages : Dovecot 2.3.21

You have a certificate missing, work out which domain it is from the domain id (171855994333478) and requst a new certificate from let’s encrypt

Just tested on new Ubuntu 22.04 VM and all working fine. (probably not a useful comment for 24.04).
but you have not made any changes to the clean OS have you?

like changing this setting perhaps?

I ran into this error, you need to remove the lines with 171855994333478 in them from the config file. Backup first. Only time its happen to me was on Ubuntu. Pretty sure I mentioned this before, I will search.

1 Like

Yes, you are right.
I deleted the lines with 171855994333478 in them from the config file and Dovecot started.
Thanks a lot.

Does anything exist in the directory /etc/ssl/virtualmin/171855994333478 ?

Does anything exist in the directory /etc/ssl/virtualmin/171855994333478 ?
No, it did’n exist.
There was 2 lines in the configuration of Dovecot (file /etc/dovecot/dovecot.conf):

local_name {
  ssl_cert = </etc/ssl/virtualmin/171855994333478/ssl.combined
  ssl_key = </etc/ssl/virtualmin/171855994333478/ssl.key

but it did’n exist the directory /etc/ssl/virtualmin/171855994333478.
I have deleted the lines.

However, there were other directories in the configuration file that exist. For example:

local_name {
ssl_cert = </etc/ssl/virtualmin/171856767080202/ssl.combined
ssl_key = </etc/ssl/virtualmin/171856767080202/ssl.key


Does that domain have SSL enabled for it’s website?

That looks related to the host SSL setup.

@Jamie, if we try to create an SSL for the hostname using setup_virtualmin_default_hostname_ssl and then undo it right away, is there a chance for this bug to appear? We haven’t pushed the change to the new release yet, which locks the domain in when creating it — could that be the actual fix to the problem?

Also, do we need to make a lock when deleting?

It’s possible that lack of locking could cause this. And yes, it’s a good idea to lock before deleting as well…

I doesn’t have SSL enabled for it’s web site and I don’t need it.

I need SSL enabled for the sites I host in the VPS.

BUt I don’t understand why it was configurated in Dovecot (it caused Dovecot didn’t start).


Domains without an SSL website can still have an SSL cert for use by Dovecot, but it’s clearly a bug if those files don’t exist!

If you create a new test domain without a website, does the same problem re-occur?

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.

It is a bug on our side, and we are working to fix it for upcoming Virtualmin 7.20.0!

Sorry about that!