Importing Emails
Import existing emails into Piler from various sources including EML or MBOX files, IMAP, and POP3 accounts.
Import local emails
Import from a directory containing EML files
pilerimport -d /path/to/dir
Import emails from an MBOX file
pilerimport -m /path/to/mbox
Import from IMAP/POP3
Import from IMAP server for user joe, except the Draft folder
pilerimport -i imaps://imap.example.com -u joe -p secretpassword -x draft
Import from POP3 server for user joe, except the Draft folder
pilerimport -K pop3.example.com -u joe -p secretpassword
Import PST files
Piler can't process PST files directly, you need to extract the individual emails from it. The recommended solution is to use an external utility on Windows.
Exchange impersonation
Replace ‘username’ with your email user (no @domain necessary), ‘superuser’ with your import user, and ‘superpassword’ with your import user’s password, and ‘example.com’ with your domain.
add-mailboxpermission username -AccessRights FullAccess -user superuser
pilerimport -i imaps://imap.example.com -u example.com/superuser/username -p superpassword
remove-mailboxpermission username -AccessRights FullAccess -user superuser
Notes
The pilerimport utility runs as user piler (setuid/setgid to piler), therefore the current directory must be writable by the piler user, also the files and directories to Import from must be readable for piler user.