I have a fully working Virtualmin installation with a fully working mail server; dovecot and postfix. However, I have just removed clamd, postgresql, vsftpd, and mailmain to lower the memory usage as it was incredibly high, and I wanted to know how I could also remove Virtualmin, but while retaining the mail server?
I’m doing that at the moment, however I actually have no need to use virtualmin anymore now that the servers are setup and everything is fine with the mail server and apache, so there really isn’t much point in having it.
So you are never going to need to add a new user? Reset a password? etc …
If you stop the webmin service the memory usage of the virtualmin components will be zero.
Are you running on a OpenVZ based VPS? There are some tweaks to greatly lower memory usage. I can run the full stack, ClamAV, Spamassassin, etc on a 512MB memory VPS.