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. Support
  3. Import Archive Emails

Import Archive Emails

Scheduled Pinned Locked Moved Support
emailarchivembox
9 Posts 4 Posters 1.8k Views 4 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.
  • M Offline
    M Offline
    mazarian
    wrote on last edited by
    #1

    Hi all,

    Please excuse me if this has been covered before (if so, would love a pointer!). I have a customer with lots of archived email boxes (originally PST & converted to MBOX format) and I was wondering if anyone has any tips on importing them into Cloudron email.

    My goal is to have a web-based, easily searchable mailbox for each archived mail account. If it's possible to convert the MBOX files into something that works with Cloudron, my idea is to setup a subdomain dedicated to archived accounts, and create logins for each inbox (archiveduser1@archive.example.com).

    Any help in achieving this is greatly appreciated!

    Thanks!

    girishG 1 Reply Last reply
    0
    • M mazarian

      Hi all,

      Please excuse me if this has been covered before (if so, would love a pointer!). I have a customer with lots of archived email boxes (originally PST & converted to MBOX format) and I was wondering if anyone has any tips on importing them into Cloudron email.

      My goal is to have a web-based, easily searchable mailbox for each archived mail account. If it's possible to convert the MBOX files into something that works with Cloudron, my idea is to setup a subdomain dedicated to archived accounts, and create logins for each inbox (archiveduser1@archive.example.com).

      Any help in achieving this is greatly appreciated!

      Thanks!

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

      @mazarian you should be able to convert mbox to maildir (the format used in Cloudron). Then just copy the maildir files into /home/yellowtent/boxdata/mail/vmail/<mailbox>/ and restart mail server (Services -> mail -> restart).

      If you do this, can you please put some notes here? Incidentally, I also have mbox'es from my previous mail addresses that I have long wanted to imported but haven't gotten around to.

      BrutalBirdieB 1 Reply Last reply
      4
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        Looks like mb2md is the tool for the job.

        M 1 Reply Last reply
        1
        • girishG girish

          @mazarian you should be able to convert mbox to maildir (the format used in Cloudron). Then just copy the maildir files into /home/yellowtent/boxdata/mail/vmail/<mailbox>/ and restart mail server (Services -> mail -> restart).

          If you do this, can you please put some notes here? Incidentally, I also have mbox'es from my previous mail addresses that I have long wanted to imported but haven't gotten around to.

          BrutalBirdieB Offline
          BrutalBirdieB Offline
          BrutalBirdie
          Partner
          wrote on last edited by BrutalBirdie
          #4

          @girish I did this exact thing one week ago.
          I migrated an old FusionDirectory mailserver to Cloudron and it went something like that:

          rsync -arlP username/Maildir/ yellowtent@my.domain.tld:~/boxdata/mail/vmail/user@subdomain.domain.tld/mail/
          

          and it went all good.

          (ps: I added my personal ssh key to the yellowtent user so I could use rsync like that)

          Like my work? Consider donating a drink. Cheers!

          girishG 1 Reply Last reply
          1
          • BrutalBirdieB BrutalBirdie

            @girish I did this exact thing one week ago.
            I migrated an old FusionDirectory mailserver to Cloudron and it went something like that:

            rsync -arlP username/Maildir/ yellowtent@my.domain.tld:~/boxdata/mail/vmail/user@subdomain.domain.tld/mail/
            

            and it went all good.

            (ps: I added my personal ssh key to the yellowtent user so I could use rsync like that)

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

            @brutalbirdie Ah nice, did you have to do mbox to maildir conversion as well?

            BrutalBirdieB 1 Reply Last reply
            0
            • girishG girish

              @brutalbirdie Ah nice, did you have to do mbox to maildir conversion as well?

              BrutalBirdieB Offline
              BrutalBirdieB Offline
              BrutalBirdie
              Partner
              wrote on last edited by
              #6

              @girish I think not no.

              Like my work? Consider donating a drink. Cheers!

              1 Reply Last reply
              0
              • girishG girish

                Looks like mb2md is the tool for the job.

                M Offline
                M Offline
                mazarian
                wrote on last edited by
                #7

                @girish Thank you for the pointer! I've spent a bit of time trying to convert my MBOX files using mb2md and it seems like there's some sort of bug that isn't working with my files.

                I am getting the following error thousands of times:

                Use of uninitialized value $t in utime at /usr/bin/mb2md line 1043, <MBOX> line 36621221
                

                I will report back when I have a solution!

                girishG 1 Reply Last reply
                0
                • M mazarian

                  @girish Thank you for the pointer! I've spent a bit of time trying to convert my MBOX files using mb2md and it seems like there's some sort of bug that isn't working with my files.

                  I am getting the following error thousands of times:

                  Use of uninitialized value $t in utime at /usr/bin/mb2md line 1043, <MBOX> line 36621221
                  

                  I will report back when I have a solution!

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

                  @mazarian I found that error message deep in https://kb.pocnet.net/wiki/Mails_aus_Eudora_exportieren . I don't speak german but translate says "The cause is still open and the implications of this message have not yet been clarified." There seems to be a sed command below it.

                  1 Reply Last reply
                  0
                  • d19dotcaD Offline
                    d19dotcaD Offline
                    d19dotca
                    wrote on last edited by
                    #9

                    Sorry to resurrect an old thread. Was recently struggling with migrating (using imapsync) an Office365 account, and it seems to do with Microsoft deprecating Basic Auth method for authentication so there's a whole set of hoops to run through to publish an application in Microsft Azure and get an OAuth access token and what-not to use in the imapsync. It's an over-complicated process.

                    The workaround I chose since it was thankfully only one mailbox was to setup my local Apple Mail.app with the Exchange account, and waited for everything to download locally. I then used it to export the the mailbox folders which it only does in mbox format. This is where our use-cases align I believe as I was wondering how to import this since Cloudron's mail server uses maildir instead of mbox.

                    I then learned that Roundcube imports mbox data directly, so simply imported through the app interface and it worked well. Just thought I'd add this as an alternative solution for anyone who comes across this in the future. Turns out Microsoft made the whole imapsync process nearly impossible to use due to their deprecation of Basic Auth just recently in October 2022.

                    --
                    Dustin Dauncey
                    www.d19.ca

                    1 Reply Last reply
                    1
                    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