Migrating from MailStore#
This documentation applies to Piler enterprise edition 2.1.0
Revision #1
Publication date: 2025-DEC-12
Overview#
MailStore Server (now owned by OpenText) provides a straightforward export-to-filesystem feature that outputs emails in EML format. This guide walks you through exporting from MailStore and importing into Piler.
Prerequisites#
- MailStore Server administrator access
- Sufficient disk space for export (roughly equal to your archive size)
- Network or USB storage for transferring data to Piler server
Step 1: Export from MailStore#
Open MailStore Client#
- Launch MailStore Client and connect to your MailStore Server
- Log in with an administrator account
Navigate to Export#
- In the navigation pane, expand Administrative Tools
- Click Export E-mail
- Select Export E-mail to File System
Configure Export Settings#
- Source: Select the archives to export
- Choose "All Users" for complete migration
-
Or select specific users/archives as needed
-
Target Folder: Choose the export destination
- Use a network share or local drive with sufficient space
-
Example:
\\fileserver\mailstore-export\orD:\mailstore-export\ -
File Format: Select EML (RFC 822)
-
This is the standard email format Piler accepts
-
Options:
- Enable Retain folder structure (optional, helps organization)
- Enable Export signed if you want integrity verification
-
Set date range filters if doing partial migration
-
Click Next and then Finish to start the export
Monitor Export Progress#
- MailStore displays progress during export
- Large archives (millions of emails) may take several hours
- Export speed depends on disk I/O and archive size
Step 2: Transfer to Piler Server#
Option A: Network Share (Recommended for large archives)#
If Piler server can access the export location directly:
# Mount network share on Piler server
mount -t cifs //fileserver/mailstore-export /mnt/import -o username=user,password=pass
# Or use NFS if available
mount -t nfs fileserver:/export/mailstore /mnt/import
Option B: rsync (Remote transfer with resume support)#
# From the machine with exported files
rsync -avz --progress /path/to/mailstore-export/ piler-server:/var/piler/import/
# Resume interrupted transfer
rsync -avz --progress --partial /path/to/mailstore-export/ piler-server:/var/piler/import/
Option C: Physical Media#
For multi-TB archives, USB drives are often fastest:
- Copy export to USB drive
- Connect USB to Piler server
- Mount and import directly
Step 3: Import into Piler#
Set Permissions#
chown -R piler:piler /var/piler/import/
Run Import#
Basic import:
pilerimport -dir /var/piler/import/mailstore-export -tenantid fictive -workers 8 -progress
For large archives (recommended settings):
pilerimport -dir /var/piler/import/mailstore-export \
-tenantid fictive \
-workers 16 \
-progress
Import with automatic cleanup:
pilerimport -dir /var/piler/import/mailstore-export \
-tenantid fictive \
-workers 8 \
-progress \
-remove
Monitor Progress#
The -progress flag shows:
- Files processed / total
- Success, duplicate, and failed counts
- Estimated time remaining
Step 4: Verify Migration#
Check Statistics#
After import completes, review the summary:
Import completed:
Processed: 1,234,567
Success: 1,200,000
Duplicates: 30,000
Failed: 4,567
Excluded: 0
Verify in Piler UI#
- Log into Piler web interface
- Search for emails from different time periods
- Verify attachments are accessible
- Check that all expected mailboxes appear
Investigate Failures#
If files failed to import:
- Check file permissions
- Look for corrupted EML files
- Review Piler logs:
docker logs piler 2>&1 | grep -i error
or
journalctl -xeu piler | grep -i error
Troubleshooting#
"Permission denied" errors#
chown -R piler:piler /var/piler/import/
chmod -R 644 /var/piler/import/*.eml
Slow import performance#
- Increase workers:
-workers 16or-workers 32 - Use SSD storage for import directory
- Ensure database has adequate resources
High duplicate count#
This is normal if:
- MailStore archived the same email multiple times
- Multiple users received the same email (expected behavior)
Piler deduplicates automatically - duplicates don't consume extra storage.
Missing emails after import#
- Verify export completed fully in MailStore
- Check for files that failed to import
- Re-run import (already-imported files are skipped)
Cleanup#
After verifying successful migration:
# Remove imported files (if not using -remove flag)
rm -rf /var/piler/import/mailstore-export/
# Unmount network share if used
umount /mnt/import