mailinabox
mailinabox copied to clipboard
Only use MIAB for Mail, disable owncloud
Is there a way to only use the server for mail, and to disable everything else?
You can start here: https://github.com/mail-in-a-box/mailinabox/pull/1646
What do you mean by "everything else"?
I mean, I only want a mailserver, not a google drive/google calender substitute.
Well, if you want to also get rid of ActiveSync, RoundCube, backups, etc, you can keep trimming.
Everyone has a different idea of exactly what a 'mailserver' should include.
How about this, can I change the subdomain of owncloud to something else?
Technically the answer is yes, if you spend enough time customizing your setup. You'd start here: https://github.com/mail-in-a-box/mailinabox/blob/master/tools/owncloud-unlockadmin.sh
But this is feeling more like fighting against MiaB than working with it.
I also think there should be an option to disable Nextcloud, ActiveSync and Antivirus at the time of installation.
I don't think MIAB comes with an Antivirus. That's why it's so lightweight.
It would be nice to choose what to install when doing a new setup. Like no activesync and nextcloud.
Part of what makes MiaB so great is how standardized and opinionated it is (and sane). Omitting Activesync might be doable (might!) but getting rid of Nextcloud would be a fundamental change with little upside for the maintainers.
There are a number of other mailserver projects out there that don't include Nextcloud. Maybe one of those would serve your needs better?
You can disable Nextcloud by running chmod 000 /usr/local/lib/owncloud
as root. This will prevent nginx from running any Nextcloud php scripts. Essentially you'd have Nextcloud "installed" but nothing is running - the files are just sitting there. That's because a typical Nextcloud installation would have Redis and probably MariaDB running, but that is not the case with MiaB.
You'd have to remember do this every time after running setup, though, because MiaB is very rigid (not customizable) and resets those permissions every time setup is run. There is no place to hook in local modifications as far as I can tell (likely by design for project control).
Keep in mind that making this permission change will break Roundcube contacts and z-push (ActiveSync) contacts and calendar, but it doesn't sound like you want those anyway. If you have problems you can always just chmod 755 /usr/local/lib/owncloud
to get back to the original (opinionated) state.
You could do the same thing with /usr/local/lib/z-push, to disable ActiveSync, and /usr/local/lib/roundcubemail to disable Roundcube (web mail).
You can disable Nextcloud by running
chmod 000 /usr/local/lib/owncloud
as root
Thank you for simply answering the question without moralising ;-)
My nextcloud install is broken, and it's leaving a 'welcome to nextcloud, click here to install' webpage out there on the internet. Yes... I want to turn this off...