Results 1 to 6 of 6

Thread: Import EML files into Zimbra

  1. #1
    PaulR is offline New Member
    Join Date
    Jul 2006
    Posts
    3
    Rep Power
    8

    Default Import EML files into Zimbra

    Hi There,

    I am upgrading an "hmailserver" email server running on NT to
    zimbra on FC4. I'd like to be able to copy off all the *.eml files
    from hmailserver and import them into zimbra. Is that possible?

    More details:

    HMailServer stores email in folders:
    Data\<maildomain>\<user>\<number>\<id>.eml
    So I can get each persons email as a large set of EML files.

    I'd like to copy them off to another machine, *upgrade*
    the NT box to FC4 then install zimbra, create the
    accounts and import the eml files for each user.

    Many thanks for any advice or hints as to whether this
    is possible.
    Paul.

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default Easiest way: imapsync

    The easiest way to do a migration if your hmailserver supports IMAP is to have Zimbra and hmailserver running side-by-side (on 2 different boxes if necessary) and use imapsync to copy the messages over.

    If that's not possible, is there any chance you could post one of these ".eml" files?
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    PaulR is offline New Member
    Join Date
    Jul 2006
    Posts
    3
    Rep Power
    8

    Default

    Quote Originally Posted by dkarp
    The easiest way to do a migration if your hmailserver supports IMAP is to have Zimbra and hmailserver running side-by-side (on 2 different boxes if necessary) and use imapsync to copy the messages over.

    If that's not possible, is there any chance you could post one of these ".eml" files?
    Thanks for getting back to me.

    On EML: its is a windows Email File - commonly used by outlook
    and outlook express, but also supported/used by many other
    email programs. It is simply a dump of the raw email data - headers,
    parts, attachments etc.

    An example is below. I have scrubbed addresses and removed the
    html format section as I think that would mess up in this list.

    The server currently used for windows/hmail/roundcube is the one being upgraded to linux/zimbra. Since I dont have a spare machine, the path
    you describe above would involve installation of a
    VM + OS + zimbra, then moving the data with imapsync.
    Then installation of the server/OS + zimbra and moving the data again.
    I'm hoping there is an easier way

    Thanks
    Paul

    Example EML file.
    ------------->8 cut here 8<--------------------
    Return-Path: <danielXXXXX@gmail.com>
    Received: from nz-out-0102.google.com ([64.233.162.194])
    by YYYYY.co.nz
    with hMailServer ; Mon, 29 May 2006 14:22:39 +1200
    Received: by nz-out-0102.google.com with SMTP id m7so442145nzf
    for <paul@YYYYY.co.nz>; Sun, 28 May 2006 19:24:09 -0700 (PDT)
    DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
    s=beta; d=gmail.com;
    h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
    b=eHCPKBg5yb9TQhHLQFy9JqGJtQ/tOWMXrsZ5DN6b0dwlX1I14XaaGdvj8KnfbNmGTvi3BUhsVnmSO/kFeATcGm8d0Cx+J1BX9NAZtnAsNNnkwoK/H00insGdAQ8SviiXRjywClP6L6oR7WOUB67zDhLNuJpc0bImBs pmozQUfAQ=
    Received: by 10.65.52.6 with SMTP id e6mr700550qbk;
    Sun, 28 May 2006 19:24:09 -0700 (PDT)
    Received: by 10.65.95.11 with HTTP; Sun, 28 May 2006 19:24:09 -0700 (PDT)
    Message-ID: <f541f0150605281924g2b09958fhc932cZZZZZZZ@mail.gma il.com>
    Date: Mon, 29 May 2006 14:24:09 +1200
    From: "Daniel" <danielXXXXXX@gmail.com>
    To: paul@YYYYYYY.co.nz
    Subject: Re: What happened
    In-Reply-To: <4f965fb985477ed51d6575b0eb7cbd5c@localhost>
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=_Part_108637_20235493.1148869449062"
    References: <f541f0150605242117t218b74a1xdaf3ZZZZZZZZ@mail.gma il.com>
    <4f965fb985477ed51d6575b0eb7cbd5c@localhost>

    ------=_Part_108637_20235493.1148869449062
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline

    Hi Paul,

    Hope you had a great weekend! sorry i havnt replied sooner. i havnt been
    round a computer.

    It didnt set the machine on fire, but i saw some puffs of smoke and a few
    sparks!! hehe.

    Mike sent me through the original photos via email that were taken on the
    blue screen, but they came through as really poor quality. So i stil cant
    have a proper play as the photos dont let me put it on the background.

    Hope all is well.>

    Daniel


    On 5/25/06, Paul <paul@YYYYYYY.co.nz> wrote:
    >
    > I'm glad to hear it worked. I hear rumours that it crashed windows,
    > damaged the disk drive, set fire to your machine ...
    >
    > Perhaps the best way to look for the original blue screen images
    > is to search for files of the form: *MG_*.jpg
    >
    > Files straight out of the camera are usually named something like:
    > _MG_0001.jpg or MG_0123.jpg.
    >
    > I'll see if any of the guys here can remember where the files are.
    > All the best.
    > Paul


    ------=_Part_108637_20235493.1148869449062--

    ------------->8 cut here 8<--------------------

  4. #4
    bburtin is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    78
    Rep Power
    9

    Default

    If I understand correctly, you have a bunch of separate text files on disk--one for each message? You should be able to import them via the REST interface using curl or another utility that posts over HTTP. Check out Roland's blog entry from May 8 for more info:

    http://www.zimbra.com/blog/archives/roland_schemers/

  5. #5
    PaulR is offline New Member
    Join Date
    Jul 2006
    Posts
    3
    Rep Power
    8

    Default

    Quote Originally Posted by bburtin
    If I understand correctly, you have a bunch of separate text files on disk--one for each message? You should be able to import them via the REST interface using curl or another utility that posts over HTTP. Check out Roland's blog entry from May 8 for more info:

    http://www.zimbra.com/blog/archives/roland_schemers/
    You are correct - one file per message. That is the storage format used by HMailServer on windows.

    This URL looks ideal - the REST interface using curl looks like the best way to post these messages back into everyones mail box after installation of zimbra.

    Thank you for your help
    Paul.

  6. #6
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default use zmlmtpinject

    OK! Looks like your messages are just plain MIME email. That's the format messages are transmitted host-to-host via SMTP, and thus it's the format that Zimbra expects to receive via LMTP.

    You should be able to use zmlmtpinject (see this thread for details, or search the forums) to transfer those .EML files to Zimbra. Please note that all messages will go to INBOX; folder structure will not be preserved.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 4.5 Upgrade failure
    By brained in forum Installation
    Replies: 9
    Last Post: 03-03-2007, 03:30 PM
  2. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM
  3. zimbra-core missing
    By kinaole in forum Developers
    Replies: 1
    Last Post: 10-02-2006, 11:59 AM
  4. Seeming variety of problems on suse-9.1
    By Crexis in forum Installation
    Replies: 52
    Last Post: 03-04-2006, 12:19 AM
  5. Replies: 1
    Last Post: 11-23-2005, 01:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •