Hi there, I am trying to use nextcloud to store files, manage calendar, and email. It doesn’t come with its own email server tho it has an email client. I googled around and found mail in a box.
From what I read, it appears that Mail-in-a-Box itself combines several different software including NextCloud’s components on calendar and contacts. I prefer a way to have NextCloud act as the entry point with MiaB providing the email server part.
Does that make sense?
Is it possible to use mail-in-a-box as the email server for nextcloud?
If so, how do I go about doing this?
Thank you and do let me know if there’s a way for me to contribute a patreon donation to mail in a box. It looks pretty damn cool
Hey
You can and dont need to do anything. Just install Mail in a box, and start using both mail server and nextcloud.
I am using it for 2 years and very happy. Just be sure your server has enough space for you files.
MIAB can use the full features of Nextcloud, I am using it extensively and storing around 150GB of data. You can run a script to gain admin access to Nextcloud. The only thing I would like is for Josh to update to Nextcloud 13, 14 is already around the corner and due for release this month.
MAIB already has a DNS records setup for Nextcloud, just install MAIB as per the instructions.
You can then access Nextcloud at “https://box.example.com/cloud”, this will redirect you to "https://box.example.com/cloud/index.php/login. From here you can log in with your account details.
At this point, you are a normal user without any admin rights to Nextcloud. You can upload files, photos and share them all through the web UI or phone app.
If you want admin rights to install plugins or some other reason then you need to run a script on the command line of your MAIB server, run as the non-privileged user you installed MAIB as.
“sudo mailinabox/tools/owncloud-unlockadmin.sh paradoxbound@example.com”
MAIB wants to be the authoritative DNS for the domains it is serving mail for. You can still use Cloudflare as I do as an endpoint for caching DNS queries. you can also delegate subdomains from MAIB.
for example, my SOHO network has a subdomain “soho.example.com” deligated to a set of FreeIPA servers which have Cloudflare’s 1.1.1.1 and 1.0.0.1 DNS servers as their forwarders but my clients via DHCP use a pair of Pi-hole servers which have the FreeIPA servers as their forwarders.
Apologies, I am not very versed so I need to clarify line by line.
wants or must?
What does this mean?
How does the delegation work?
I know FreeIPA is a identity management system. but I cannot picture this setup you describe in my own head.
I prefer to have cloudflare handle DNS because a) i am familiar and b) i have subdomains pointing to other servers as I intend to run something like a SaaS
There is absolutely no problem with using an external DNS solution. MiaB was created on the premise that it’s users would be less experienced and would have minimal web hosting needs so it handles all of the DNS and can serve simple web pages. However, it is not required that MiaB handle DNS. After installation, all of the necessary DNS settings are available in the admin area on the System>External DNS page. Simply copy those settings to your DNS.