Cannot copy ssl certificate to service dovecot and postfix

In server configuration > ssl certificate > the button copy ssl certificate to service don’t works, if I create an new virtual server it works.

SYSTEM INFORMATION
OS type and version almalinux 9.2
Webmin version 2.021
Virtualmin version 7.7 pro
Related packages SUGGESTED

I might be wrong, but I think with a shared system you can only one virtual server to copy ssl to service. Only websites and have different ssl certs.

no because It worked a few days ago with the existing virtual server.

when I create a new virtual server I don’t have the problem

I found a solution, apparently virtualmin has a bug, it does not edit the files dovecot.conf and sni_map

how to :
edit : /etc/dovecot/dovecot.conf

local_name domain.com {
ssl_cert = </etc/ssl/virtualmin/domain_id/ssl.combined
ssl_key = </etc/ssl/virtualmin/domain_id/ssl.key
}
local_name *.domain.com {
ssl_cert = </etc/ssl/virtualmin/domain_id/ssl.combined
ssl_key = </etc/ssl/virtualmin/domain_id/ssl.key
}

edit /etc/postfix/sni_map

domain.com/etc/ssl/virtualmin/domain_id/ssl.key,/etc/ssl/virtualmin/domain_id/ssl.cert
.domain.com/etc/ssl/virtualmin/domain_id/ssl.key,/etc/ssl/virtualmin/domain_id/ssl.cert

restart postfix and dovecot

1 Like

I see these already for each of my virtual domains, each has those lines, maybe its a bug on your OS.
But why then does the mail client complain unless I use use my main domain… I will need to test.
By Virtualmin I still can only set 1 default domain.
and its copy the cert to (see below)

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