Spamassassin and clamav not showing in modules

SYSTEM INFORMATION
OS type and version Debian 12
Virtualmin version 7.20.2.

Hi there,

From the day to another, I’ve lost spamassassin and clamav modules in webmin ui.
I was about to configure them, that’s why I realized they were not showing up the menus anymore.
I really mean they don’t appear at all in installed modules or un-used menu section.

I’ve tried refreshing modules. No luck.
I’ve tried to activate them in the features and plugins but got this error:

Failed to save enabled features : The SpamAssassin program does not appear to be installed on your system, or has not yet been set up properly in Webmin’s SpamAssassin Mail Filter module. If your system does not use spam filtering, it should be disabled in Virtualmin’s module configuration page

if I check in terminal:

root@myhost:~# which spamassassin
/bin/spamassassin
root@myhost:~# which spamd
/sbin/spamd
root@myhost:~# which clamd
/sbin/clamd

I did install virtualmin with the script virtualmin-install.sh (full, not minimal).
I don’t know how this went or what happenened.

Is there anyway to check webmin modules and/or to “restore” them in some ways?

Any help to restore this is very welcome :slight_smile:

Thanks,
Have a great day all !

That’s what the error is about. It’s saying the feature cannot be enabled because the necessary program isn’t available.

1 Like

Use the package manager to search for them in there.
Not sure if the get listed in features and plugins if there are not installed.
Also a bit surprised the module isn’t in the unused section.
Try Refesh Modules

As mentioned in my initial post, I already did what you propose.

Software packager keeps saying

Installed
Unknown

But it also says that for any other package (like apache) so I guess the check is just broken in the interface?

That’s weird !

Any clues ?

Is there anyway to check for logs/errors or just to maybe “reset” these modules ?
Or maybe to ask virtualmin to reinstall them “its way” ?

Why not use apt from the command line and see the results ? Or infact if installed use the aptversions program to see what is installed… I’m sure at some point virtualmin installed this but it now might not be the case

Thanks for your inputs.
As stated, I have checked and both clamav and spamassassin are actually installed. They do appear in the packet manager and in shell.

So I wonder how to make virtualmin understand they are here.

Very odd behavior !

For the record

spamassassin/stable,now 4.0.0-6 all [installed]
clamav/stable,now 1.0.5+dfsg-1~deb12u1 amd64 [installed]

A little more weirdness…

Action Current server Fresh installed server
Refresh modules Checking for usable Webmin modules … … found 70 with installed applications, 41 not installed. Checking for usable Webmin modules … … found 68 with installed applications, 41 not installed.
Searching for “filter” in top left area of menu Procmail Mail Filter Procmail Mail Filter AND Spamassassin Mail Filter

I also tried to reinstall webmin and webmin-virtual-server…some odd outputs but still not showing spanassassin nor clamav…

apt-get install --reinstall webmin webmin-virtual-server
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/37.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
[master 806656b] saving uncommitted changes in /etc prior to apt run
15 files changed, 43 insertions(+), 35 deletions(-)
create mode 120000 systemd/system/multi-user.target.wants/clamav-freshclam.service
create mode 120000 systemd/system/timers.target.wants/spamassassin-maintenance.timer
(Reading database … 123270 files and directories currently installed.)
Preparing to unpack …/archives/webmin_2.202_all.deb …
Unpacking webmin (2.202) over (2.202) …
Preparing to unpack …/webmin-virtual-server_7.20.2.gpl-1_all.deb …
Unpacking webmin-virtual-server (7.20.2.gpl-1) over (7.20.2.gpl-1) …
Setting up webmin (2.202) …
Setting up webmin-virtual-server (7.20.2.gpl-1) …

[master 2f72601] committing changes in /etc made by “apt-get install --reinstall webmin webmin-virtual-server”
11 files changed, 37 insertions(+), 36 deletions(-)

I have a spam assassin module in Webmin but no ClamAV. Not sure I ever did?

That can’t do anything good.

You can probably do:

virtualmin config-system --include SpamAssassin --include ClamAV

And, then “Re-check Virtualmin Configuration”.

But, note that if you (or someone else) has changed the configuraiton of SpamAssassin or ClamAV, this may not work as expected. All of our installation stuff, including Virtualmin-Config, is only tested on a freshly installed OS and can’t really anticipate all the ways things might be different from a freshly installed supported OS.