Ingest EML files from disk

If you are moving the email archive from another solution provider you may have an option to extract the emails to disk.  With the files in a raw EML format the Mailsphere ingest tool can be used to securely move these emails to the Mailsphere archive.


Properties File Example

The following sample of the properties file shows where the API user credentials need to be added.

# This is example configuration of MailSync ingestion tool
# This is example for eml ingestion
# host and port of MailsphereUI server
# user with priviledges to access REST interface
mailsync.mailsphere.user=[***ADD API USER ID***]
# Password for mailsphere, if left commented out or empty it will be requested
mailsync.mailsphere.password=[***ADD API USER PASSWORD***]
# number of threads to run
# go through zip files
# ingest plain eml files

Run the EML Ingest

Run the EML Ingest

Copy the three files found in the to a level below the root of the folder where you have the EML files stored.

Using the above screen shot as an example, the EML files are stored in:


The three files contained in are located in:


You can use a different configuration to this but try to keep the tool in the parent of the root folder for the EML files.

If you're using Windows, open the command prompt and navigate to the root of the folder where you have stored the EML files.

Run the following command in the command prompt:

java -Xms1024m -Xmx2048m -XX:MaxPermSize=1024m -XX:MaxNewSize=1024m -jar mailsphere-mail-sync-1.2.18.jar ingest-eml ROOT_OF_EML_FILES

Note: Remember to change the red text at the end of this to reference your folder name.