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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Import Archive Emails

    Support
    email archive mbox
    3
    8
    237
    Loading More Posts
    • 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
      mazarian last edited by

      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!

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @mazarian last edited by

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

        BrutalBirdie 1 Reply Last reply Reply Quote 4
        • girish
          girish Staff last edited by

          Looks like mb2md is the tool for the job.

          M 1 Reply Last reply Reply Quote 1
          • BrutalBirdie
            BrutalBirdie Staff @girish last edited by 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)

            Like my work? Consider donating a beer 🍻 Cheers!

            girish 1 Reply Last reply Reply Quote 1
            • girish
              girish Staff @BrutalBirdie last edited by girish

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

              BrutalBirdie 1 Reply Last reply Reply Quote 0
              • BrutalBirdie
                BrutalBirdie Staff @girish last edited by

                @girish I think not no.

                Like my work? Consider donating a beer 🍻 Cheers!

                1 Reply Last reply Reply Quote 0
                • M
                  mazarian @girish last edited by

                  @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!

                  girish 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @mazarian last edited by

                    @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 Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB