2020-11-11 11:47:10 +01:00
|
|
|
|
---
|
|
|
|
|
title: Migrating email from an email provider to a YunoHost instance
|
|
|
|
|
template: docs
|
|
|
|
|
taxonomy:
|
|
|
|
|
category: docs
|
2021-02-06 18:22:00 +01:00
|
|
|
|
routes:
|
|
|
|
|
default: '/email_migration'
|
2020-11-11 11:47:10 +01:00
|
|
|
|
---
|
2015-06-20 13:44:25 +02:00
|
|
|
|
|
2020-03-28 06:54:10 +01:00
|
|
|
|
*[Documentation linked to YunoHost email](/email)*.
|
2015-06-20 13:44:25 +02:00
|
|
|
|
|
2020-07-15 22:01:59 +02:00
|
|
|
|
Migration of emails from one server to another can be done with two recommended tools: ImapSync or Larch.
|
2015-06-20 13:44:25 +02:00
|
|
|
|
|
|
|
|
|
This tool must be installed on your desktop computer. The transfer method looks at this schema:
|
|
|
|
|
|
|
|
|
|
**`Old email server −> desktop computer with ImapSync or Larch −> new email server`**
|
|
|
|
|
|
|
|
|
|
### ImapSync
|
2018-06-04 22:54:12 +02:00
|
|
|
|
|
2015-06-20 13:44:25 +02:00
|
|
|
|
[ImapSync site](http://imapsync.lamiral.info/)
|
|
|
|
|
|
|
|
|
|
Install ImapSync on your client computer by following this [guide](http://imapsync.lamiral.info/INSTALL):
|
|
|
|
|
```bash
|
|
|
|
|
sudo dnf install imapsync # Under Fedora
|
|
|
|
|
```
|
2020-07-15 22:01:59 +02:00
|
|
|
|
Transfer emails from one server to another:
|
2015-06-20 13:44:25 +02:00
|
|
|
|
```bash
|
|
|
|
|
imapsync --host1 <domain/IP> --port1 993 --ssl1 --user1 <user> --password1 <password> \
|
|
|
|
|
--host2 <domain/IP> --port2 993 --ssl2 --user2 <user> --password2 <password>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Note that transfer settings `--port 993` and `--ssl` are specific to YunoHost email server.
|
|
|
|
|
|
|
|
|
|
### Larch
|
2018-06-04 22:54:12 +02:00
|
|
|
|
|
2015-06-20 13:44:25 +02:00
|
|
|
|
[Larch site](https://github.com/rgrove/larch/)
|
|
|
|
|
|
|
|
|
|
After beforehand installed `gem`, install `larch` on your client computer:
|
|
|
|
|
```bash
|
|
|
|
|
sudo gem install larch
|
|
|
|
|
```
|
2020-07-15 22:01:59 +02:00
|
|
|
|
Transfer emails from one server to another:
|
2015-06-20 13:44:25 +02:00
|
|
|
|
```bash
|
|
|
|
|
larch -a -f imaps://serveur_d'origine.org -t imaps://serveur_de_destination.org
|
|
|
|
|
```
|
2020-07-15 22:01:59 +02:00
|
|
|
|
For other types of transfer refer to [Larch documentation](https://github.com/rgrove/larch#label-Usage).
|