mailinabox icon indicating copy to clipboard operation
mailinabox copied to clipboard

Only use MIAB for Mail, disable owncloud

Open Dr-Ari-Gami opened this issue 4 years ago • 11 comments

Is there a way to only use the server for mail, and to disable everything else?

Dr-Ari-Gami avatar Mar 29 '20 17:03 Dr-Ari-Gami

You can start here: https://github.com/mail-in-a-box/mailinabox/pull/1646

What do you mean by "everything else"?

bronson avatar Apr 15 '20 16:04 bronson

I mean, I only want a mailserver, not a google drive/google calender substitute.

Dr-Ari-Gami avatar Apr 15 '20 16:04 Dr-Ari-Gami

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.

bronson avatar Apr 15 '20 21:04 bronson

How about this, can I change the subdomain of owncloud to something else?

Dr-Ari-Gami avatar Apr 15 '20 21:04 Dr-Ari-Gami

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.

bronson avatar Apr 16 '20 22:04 bronson

I also think there should be an option to disable Nextcloud, ActiveSync and Antivirus at the time of installation.

saudiqbal avatar May 29 '20 07:05 saudiqbal

I don't think MIAB comes with an Antivirus. That's why it's so lightweight.

Dr-Ari-Gami avatar May 29 '20 14:05 Dr-Ari-Gami

It would be nice to choose what to install when doing a new setup. Like no activesync and nextcloud.

saudiqbal avatar May 29 '20 21:05 saudiqbal

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?

bronson avatar Jun 01 '20 21:06 bronson

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).

downtownallday avatar Jun 02 '20 00:06 downtownallday

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...

CholoTook avatar Dec 05 '23 11:12 CholoTook