I don’t use the webmail functionality and I’d like to completely disable it to prevent automated password attempts. Is there a way to do this globally, e.g. by deleting the webmail package or setting configuration option?
Is that likely to break anything else? It looks like it will leave a bunch of packages as no longer required (e.g. libapache2-mod-php, which is very much required given that I have some WordPress sites), although I guess if nothing runs apt autoremove it shouldn’t be a problem.
I had a look at that. libapache2-mod-php is a dependency package, which depends on latest stable PHP version (currently 7.3)
Sympl modules that need PHP depend directly on libapache2-mod-php7.3 which would not get removed when you remove libapache2-mod-php. # apt-get -s removepackages
will show you everything that will be removed.
If you have aptitude installed, # aptitude whypackage-name
will help to show you what depends on what.
I’ve decided not to risk this, apt also wants to remove mariadb-client, php-intl and a bunch of other packages that I don’t want to remove (and when I tried removing sympl-webmail, it didn’t get rid of the /webmail URL anyway).