Importing Email from Another Provider

Opalstack supports two methods to import mail from other providers for use with your Opalstack mail users: direct import and IMAP-to-IMAP transfers.

Direct Import

If your other mail provider stores your mail on their servers in Maildir format, then that mail can be copied directly into a mail user account on Opalstack.

1

Ask your mail provider to provide a zipped archive of your Maildir directory.

2

Upload the zipped archive into one of your shell user home directories. You may use SFTP for this purpose.

3

Create a mail user if you haven't done so already.

4

Contact Opalstack Support to ask them to drop your mail into your mail user's home directory. Please include the mail user name and the location of your mail archive in your request.

IMAP-to-IMAP Transfer

If your other mail provider offers IMAP mail service, then you can copy your mail over to your Opalstack mail users over IMAP. There are a couple of different approaches to this - with a specialized tool for transferring mail between servers such as mbsync, or by moving messages with with your desktop mail client software.

IMAP Transfer with mbsync (recommended)

If you need to move a large amount of mail from your old provider, then Opalstack recommends this approach:

1

Create a mail user if you have not done so already.

2

Create a shell user if you have not done so already. You can use an existing shell user if you wish.

3

Log in to a SSH session on your Opalstack server as your shell user.

4

Create a file in your shell user's home directory named ~/.mbsyncrc with the following contents, making the changes as directed:

IMAPAccount oldhost
SSLType IMAPS
# change the following two lines to your old mail server and user
Host mail.oldhost.com
User your_old_mail_username

IMAPStore oldhost
Account oldhost

IMAPAccount opalstack
SSLType IMAPS
# change the following two lines to your Opalstack mail server and user
Host mail.us.opalstack.com
User your_mail_user_name

IMAPStore opalstack
Account opalstack

Channel main
Master :oldhost:
Slave :opalstack:
Patterns *
Create Slave
Sync Pull
5

Save the configuration file from step 4 and you are ready to migrate your mail by running the following command:

mbsync -a

mbsync will then report its progress as it copies your mail over.

IMAP Transfer with a Mail Client

If you need to move only a small amount of mail from your old provider, then Opalstack recommends this approach:

1

Create a mail user if you haven't done so already.

2

Configure your mail client with your Opalstack mail user credentials.

3

Configure your mail client with your other mail provider's credentials if you have not done so already.

4

Make a note of the folders and subfolders that exist on your old mail account and create them for your Opalstack mail account if they do not exist already.

5

For each folder and subfolder in your old mail account:

  1. Click the folder in your mail client.
  2. Select all of the messages in the folder.
  3. Drag the messages into the corresponding folder for your Opalstack mail user.

Your mail client may have other menu options for moving and copying mail between folders and accounts. Check your mail client documentation for more information.