Virtualmin doesn't start/stop Dovecot properly

Hi,

I've seen this today on both Centos 7 and 8.

When going to a domain -> server configuration -> SSL certificates -> copy to Dovecot then Virtualmin doesn't apply/restart Dovecot properly.

For some reason Virtualmin does not use the systemd to start/stop/restart, instead it seems to be doing something else, not clear.

In Webmin/Dovecot module config I see it needs a "init script name". I placed a dummy script in init.d, merely redirecting to systemd calls, this seems to have sort of fixed it, but not quite. Systemd would still not "see" Dovecot as running though there would be some processes running.

Even with the dummy init script in place "Copy cert to dovecot" would still not complete properly alas, unsure why.

The last thing I tried that seems to have remedied it (I think!..) is to modify dovecot/dovecot-lib.pl and replaced line 363 (of start_dovecot function) with:

&system_logged("service dovecot restart 2>&1 </dev/null &");

What could be done to fix this situation? All it needs to do is call systemd or "service dovecot start/stop/restart"

Other modules config ask for start/stop command, but the config for Dovecot module is very lacking.

Status: 
Active

Comments

Ilia's picture
Submitted by Ilia on Wed, 05/13/2020 - 01:30

What Virtualmin package version do you have installed exactly?

Hi,

As I've just installed it the other day I expect it's the latest of everything:

Webmin version 1.942 Usermin version 1.791 Virtualmin version 6.09 Authentic theme version 19.46

Ilia's picture
Submitted by Ilia on Wed, 05/13/2020 - 05:24

What is the output of:

yum list |grep virtual-server

wbm-virtual-server.noarch 2:6.09.gpl-1 @virtualmin-universal

wbt-virtual-server-theme.noarch 2:9.4-1 virtualmin-universal

Ilia's picture
Submitted by Ilia on Wed, 05/13/2020 - 06:02

Assigned: Unassigned ยป

I remember Jamie mentioned that he's working on fixing it. Expect it to be fixed in Virtualmin 6.10.

Thanks for the heads up.

Thanks, fingers crossed it'll make it in the next release. I'll hack it around until then.