Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. Splitting email from apps into separate Cloudrons

Splitting email from apps into separate Cloudrons

Scheduled Pinned Locked Moved Solved Discuss
emailmulti-hostmulti-domain
12 Posts 6 Posters 2.6k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 32463 Offline
      32463 Offline
      3246
      wrote on last edited by
      #1

      Hi gang. Hope your New Year is going well πŸ™‚ πŸŽ†

      Quick question to ask your advice on the following situation:

      My Cloudron has grown in size somewhat, especially since I moved mailboxes from O365 and Google onto it, which now means backups take for.ev.er.

      Hence, I want to split mail from the apps and dedicate a fresh VM to email, so it can blossom without restrictions.

      What's the best way to do this?

      Right now, I am thinking:

      1. Take a backup (good idea in any case)
      2. Set up a second VM and give its own hostname under my main domain (e.g. email.bebraver.cloud)
      3. Install Cloudron on it and connect it to my main apps server via LDAP
      4. Change the email domain to be email.bebraver.cloud (rather than mail.)
      5. Manually export mailboxes from the apps box to the mailbox (yes, pun intended)
      6. Remove the mailboxes from the app server (and free up some more space)
      7. I think there should be a seventh step because I like that number and it's a good place to have a nice cup of tea / pint of bitter πŸ˜› 🍺

      πŸ‘‰ Find our more www.bebraver.online

      1 Reply Last reply
      3
      • murgeroM Offline
        murgeroM Offline
        murgero
        App Dev
        wrote on last edited by
        #2

        I'd build the new VM, install cloudron, put the domain on there with manual SSL (cause Let's Encrypt wont work without changing the DNS records) and then point MX to the new cloudron, enable email in the new cloudron and migrate user data either from backups or using an imap tool.

        In theory it would work, or you can use a different email server for email and cloudron for everything else. (mailcow can do this AND also migrate user data)

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~

        32463 1 Reply Last reply
        2
        • murgeroM murgero

          I'd build the new VM, install cloudron, put the domain on there with manual SSL (cause Let's Encrypt wont work without changing the DNS records) and then point MX to the new cloudron, enable email in the new cloudron and migrate user data either from backups or using an imap tool.

          In theory it would work, or you can use a different email server for email and cloudron for everything else. (mailcow can do this AND also migrate user data)

          32463 Offline
          32463 Offline
          3246
          wrote on last edited by
          #3

          @murgero thanks. Yes, I hosted with Mailcow before. I wanted to consolidated everything onto one stack for easier maintenance πŸ™‚

          @girish @nebulon et al, can I clarify something about the Change Dashboard Domain from the docs?

          https://docs.cloudron.io/domains/#dashboard-domain

          Says it can be my.anything.com yet not clear if that precludes situations like my.something.anything.com?

          I wanted to end up with my.apps.bebraver.cloud and my.email.bebraver.cloud if possible πŸ™‚

          πŸ‘‰ Find our more www.bebraver.online

          jdaviescoatesJ 1 Reply Last reply
          0
          • 32463 3246

            @murgero thanks. Yes, I hosted with Mailcow before. I wanted to consolidated everything onto one stack for easier maintenance πŸ™‚

            @girish @nebulon et al, can I clarify something about the Change Dashboard Domain from the docs?

            https://docs.cloudron.io/domains/#dashboard-domain

            Says it can be my.anything.com yet not clear if that precludes situations like my.something.anything.com?

            I wanted to end up with my.apps.bebraver.cloud and my.email.bebraver.cloud if possible πŸ™‚

            jdaviescoatesJ Online
            jdaviescoatesJ Online
            jdaviescoates
            wrote on last edited by jdaviescoates
            #4

            @3246 said in Splitting email from apps into separate Cloudrons:

            Says it can be my.anything.com yet not clear if that precludes situations like my.something.anything.com?
            I wanted to end up with my.apps.bebraver.cloud and my.email.bebraver.cloud if possible

            Yep, I can confirm that's perfectly possible, I have my.status.uniteddiversity.coop which just has Uptime Kuma installed and have previously had my.username.selfhost.cloud too (to see if it would work) and they both worked fine πŸ™‚

            I use Cloudron with Gandi & Hetzner

            robiR 32463 3 Replies Last reply
            1
            • jdaviescoatesJ jdaviescoates

              @3246 said in Splitting email from apps into separate Cloudrons:

              Says it can be my.anything.com yet not clear if that precludes situations like my.something.anything.com?
              I wanted to end up with my.apps.bebraver.cloud and my.email.bebraver.cloud if possible

              Yep, I can confirm that's perfectly possible, I have my.status.uniteddiversity.coop which just has Uptime Kuma installed and have previously had my.username.selfhost.cloud too (to see if it would work) and they both worked fine πŸ™‚

              robiR Offline
              robiR Offline
              robi
              wrote on last edited by
              #5

              @jdaviescoates did you originally install to my.xx.ud.coop? or just my.ud.coop?

              Conscious tech

              jdaviescoatesJ 1 Reply Last reply
              0
              • jdaviescoatesJ jdaviescoates

                @3246 said in Splitting email from apps into separate Cloudrons:

                Says it can be my.anything.com yet not clear if that precludes situations like my.something.anything.com?
                I wanted to end up with my.apps.bebraver.cloud and my.email.bebraver.cloud if possible

                Yep, I can confirm that's perfectly possible, I have my.status.uniteddiversity.coop which just has Uptime Kuma installed and have previously had my.username.selfhost.cloud too (to see if it would work) and they both worked fine πŸ™‚

                32463 Offline
                32463 Offline
                3246
                wrote on last edited by
                #6

                @jdaviescoates how did you do it? πŸ™‚

                πŸ‘‰ Find our more www.bebraver.online

                1 Reply Last reply
                0
                • jdaviescoatesJ jdaviescoates

                  @3246 said in Splitting email from apps into separate Cloudrons:

                  Says it can be my.anything.com yet not clear if that precludes situations like my.something.anything.com?
                  I wanted to end up with my.apps.bebraver.cloud and my.email.bebraver.cloud if possible

                  Yep, I can confirm that's perfectly possible, I have my.status.uniteddiversity.coop which just has Uptime Kuma installed and have previously had my.username.selfhost.cloud too (to see if it would work) and they both worked fine πŸ™‚

                  32463 Offline
                  32463 Offline
                  3246
                  wrote on last edited by 3246
                  #7

                  @jdaviescoates is it as simple as:

                  1. Go to Domains & Certs
                  2. Click Add domain
                  3. Enter your sub-domain of choice (e.g. apps.bebraver.cloud)
                  4. Select the appropriate DNS Provider (e.g. Cloudflare)
                  5. Navigate to the Change Dashboard Domain section
                  6. Click on the domain drop-down (my....) and select the sub-domain you added (e.g. apps.bebraver.cloud).
                  7. Be sure to check that the new A Records are set up OK in your DNS for the sub-domains (e.g. apps.bebraver.cloud and my.apps.bebraver.cloud)

                  It looks like it should work, right? πŸ€”

                  πŸ‘‰ Find our more www.bebraver.online

                  humptydumptyH 1 Reply Last reply
                  1
                  • robiR robi

                    @jdaviescoates did you originally install to my.xx.ud.coop? or just my.ud.coop?

                    jdaviescoatesJ Online
                    jdaviescoatesJ Online
                    jdaviescoates
                    wrote on last edited by
                    #8

                    @robi said in Splitting email from apps into separate Cloudrons:

                    @jdaviescoates did you originally install to my.xx.ud.coop? or just my.ud.coop?

                    In the examples mentioned I originally installed to my.xx.ud.coop

                    Indeed it's actually the very same Cloudron.

                    I originally installed at my.username.selfhost.cloud then when I no longer had a need for that I switched it my.status.ud.coop

                    @3246 said in Splitting email from apps into separate Cloudrons:

                    @jdaviescoates is it as simple as:

                    1. Go to Domains & Certs
                    2. Click Add domain
                    3. Enter your sub-domain of choice (e.g. apps.bebraver.cloud)
                    4. Select the appropriate DNS Provider (e.g. Cloudflare)
                    5. Navigate to the Change Dashboard Domain section
                    6. Click on the domain drop-down (my....) and select the sub-domain you added (e.g. apps.bebraver.cloud).
                    7. Be sure to check that the new A Records are set up OK in your DNS for the sub-domains (e.g. apps.bebraver.cloud and my.apps.bebraver.cloud)

                    It looks like it should work, right? πŸ€”

                    Yes, exactly, it's as simple as that.

                    I use Cloudron with Gandi & Hetzner

                    32463 1 Reply Last reply
                    1
                    • 32463 3246

                      @jdaviescoates is it as simple as:

                      1. Go to Domains & Certs
                      2. Click Add domain
                      3. Enter your sub-domain of choice (e.g. apps.bebraver.cloud)
                      4. Select the appropriate DNS Provider (e.g. Cloudflare)
                      5. Navigate to the Change Dashboard Domain section
                      6. Click on the domain drop-down (my....) and select the sub-domain you added (e.g. apps.bebraver.cloud).
                      7. Be sure to check that the new A Records are set up OK in your DNS for the sub-domains (e.g. apps.bebraver.cloud and my.apps.bebraver.cloud)

                      It looks like it should work, right? πŸ€”

                      humptydumptyH Offline
                      humptydumptyH Offline
                      humptydumpty
                      wrote on last edited by
                      #9

                      @3246 note that you can’t use cloudflare proxying with two level of subdomains.

                      Cloudflare universal certificates only support one level of subdomain with HTTPS proxying on the free plan. See this forum thread for more information.
                      

                      https://docs.cloudron.io/domains/#cloudflare-dns

                      1 Reply Last reply
                      2
                      • jdaviescoatesJ jdaviescoates

                        @robi said in Splitting email from apps into separate Cloudrons:

                        @jdaviescoates did you originally install to my.xx.ud.coop? or just my.ud.coop?

                        In the examples mentioned I originally installed to my.xx.ud.coop

                        Indeed it's actually the very same Cloudron.

                        I originally installed at my.username.selfhost.cloud then when I no longer had a need for that I switched it my.status.ud.coop

                        @3246 said in Splitting email from apps into separate Cloudrons:

                        @jdaviescoates is it as simple as:

                        1. Go to Domains & Certs
                        2. Click Add domain
                        3. Enter your sub-domain of choice (e.g. apps.bebraver.cloud)
                        4. Select the appropriate DNS Provider (e.g. Cloudflare)
                        5. Navigate to the Change Dashboard Domain section
                        6. Click on the domain drop-down (my....) and select the sub-domain you added (e.g. apps.bebraver.cloud).
                        7. Be sure to check that the new A Records are set up OK in your DNS for the sub-domains (e.g. apps.bebraver.cloud and my.apps.bebraver.cloud)

                        It looks like it should work, right? πŸ€”

                        Yes, exactly, it's as simple as that.

                        32463 Offline
                        32463 Offline
                        3246
                        wrote on last edited by
                        #10

                        @jdaviescoates super, thanks for confirming. I'll try it out now πŸ™‚

                        @girish @nebulon can we add something to the docu about this, please?

                        πŸ‘‰ Find our more www.bebraver.online

                        girishG 1 Reply Last reply
                        1
                        • 32463 3246

                          @jdaviescoates super, thanks for confirming. I'll try it out now πŸ™‚

                          @girish @nebulon can we add something to the docu about this, please?

                          girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #11

                          @3246 I think splitting email into a separate server is not a problem. But it can be cumbersome to take the emails from one server and put it into another (I guess this applies whether you are using Cloudron or not). You have to use something like imapsync to move the emails but that still doesn't move filters. Like https://docs.cloudron.io/guides/import-email/

                          Ideally, Cloudron should allow the email backup to be restored into another Cloudron, I guess. But this is not straightforward if domains betweens cloudrons differ etc.

                          32463 1 Reply Last reply
                          2
                          • girishG girish

                            @3246 I think splitting email into a separate server is not a problem. But it can be cumbersome to take the emails from one server and put it into another (I guess this applies whether you are using Cloudron or not). You have to use something like imapsync to move the emails but that still doesn't move filters. Like https://docs.cloudron.io/guides/import-email/

                            Ideally, Cloudron should allow the email backup to be restored into another Cloudron, I guess. But this is not straightforward if domains betweens cloudrons differ etc.

                            32463 Offline
                            32463 Offline
                            3246
                            wrote on last edited by
                            #12

                            @girish it worked quite smoothly in the end but decided to upgrade my hosting and then have everything on one server again.

                            Backup time and size are an issue though. Especially having to wait until one is done before editing/adding or removing apps. Having a fast local disk to backup to helps though πŸ™‚

                            πŸ‘‰ Find our more www.bebraver.online

                            1 Reply Last reply
                            2
                            • nebulonN nebulon marked this topic as a question on
                            • nebulonN nebulon has marked this topic as solved on
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Bookmarks
                              • Search