Migrating email from other mail servers (server mode only)
If you already have other mail servers, such as Exchange or FortiMail server, and you want to consolidate the mail user and data into one FortiMail server, you can do so by migrating the users and data to your FortiMail unit.
The email migration process involves the following procedures:
- Preparation
- Enable the mail migration feature using the following CLI commands (available in server mode only):
- Define the remote mail server settings. For details, see Defining a remote mail server for mail migration.
- Create a domain for the to-be-migrated users. In v5.0 release, the domain name must be the same as the users’ domain on the remote mail server. Beginning from v5.0.1 release, the domain name can be different. For details, see Creating domains for mail migration.
- User migration: Because FortiMail will act as an IMAP client on behalf of the users to get their email from the remote mail server, you must import the user/password information first. To do this, you can use one of the following methods:
config system global
set email-migration-status enable
end
By default, the email migration feature does not appear on the GUI until you enable it with the above CLI commands. |
- If you only need to migrate email for a few users and you know the users’ login credentials, you can manually enter their user name/password information by going to Domain & User > Mail Migration > Migration User and click New.
- If you can export the user name/non-encrypted password list into a CSV file, you can import the CSV file by going to Domain & User > Mail Migration > Migration User and click Action > Import > From .CSV File.
- If the to-be-migrated users already have accounts on the FortiMail server, you can import/copy the local user list to the migration user list by going to Domain & User > Mail Migration > Migration User and click Action > Import > From Local Domain.
- If the user passwords are encrypted, you have to collect their passwords through FortiMail webmail login or SMTP client login. To do this:
- First create an authentication profile that uses the remote mail server as the authentication server. For details, see Configuring authentication profiles.
- Create a recipient-based policy that includes the migration users as senders and also includes the authentication profile. For details, see the Controlling email based on sender and recipient addresses.
- Use one of the following two methods to collect user passwords:
- Through FortiMail webmail login: Inform the users to log in to the FortiMail webmail portal, using their email addresses of the remote domain (the domain part needs to match proper authentication policy) and their passwords. Upon successful login, the users will be shown an empty webmail mailbox. This is because the email data has not been migrated yet and this step is only meant to collect user passwords.
- Through SMTP client login: Inform the users to use the FortiMail host name as their outgoing mail server.
After you have done the above, when the users try to send email, they will have to authenticate through FortiMail. Then FortiMail will record the user names and passwords into the migration user list under Domain & User > Mail Migration > Migration User.
- Go to Domain & User > Mail Migration > Migration User.
- From the Action dropdown list, select Migrate > Selected Users or All Users.
- If needed, you can click the Stop and Start button to control the migration process.
- After the user’s mail data is successfully migrated, you can export the user to the local user list by clicking Action > Export > Selected Users or All Users. The exported users will appear as local users under User > User.
Defining a remote mail server for mail migration
This is one of the email migration procedures. For the entire procedures, see Migrating email from other mail servers (server mode only).
- Go to Domain & User > Mail Migration > Remote Mail Server.
- Click New.
- Enter a name for the remote server.
- Enter the host name or IP address of the remote server.
- For Protocol, select either IMAP or IMAPS, FortiMail will act as an IMAP client on the users’ behalf to get email from the remote server.
- Enter the IMAP port number if different from the default one (port 993).
- Click Create.
Creating domains for mail migration
This is one of the email migration procedures. For the entire procedures, see Migrating email from other mail servers (server mode only).
- Go to Domain & User > Domain > Domain.
- Click New.
- Configure the settings as described in Configuring protected domains.
- Since you have enabled mail migration, a new section called Mail Migration Settings appears at the bottom of the domain settings page. Expand this section and configure the following settings.
- Check Enable mail migration.
- Specify the remote mail server from the dropdown list. See Defining a remote mail server for mail migration.
- Click Create.
In v5.0 release, the created domain name on FortiMail must be the same as the users’ domain on the remote mail server. Beginning from v5.0.1 release, the domain names can be different. |