Simple setup to fetch mails from remote IMAP and add them to a local server.
The following awesome projects help to backup your mails
Install Docker
Clone this repository (will require git) or download a ZIP file containing all files from here
- Create a environment file named
.envin the root folder with the following valuesREMOTE_IMAP_SERVER=the hostname of the remote IMAP serverIMAP_USER=the user which will be used to copy the mails. It MUST exists on the remote IMAP server, and will be created on the local IMAP serverREMOTE_IMAP_PASSWORD=the password to login into the remote IMAPLOCAL_IMAP_PASSWORD=the password to login into the local IMAP (can be different then the remote one)
- Start the container environment with
./start.sh(will not start detached and block the terminal) - In another terminal start
./sync.sh - Login into Roundcube at http://localhost:9002/ with the user configured as
IMAP_USERand the password configured asLOCAL_IMAP_PASSWORD - If necessary the
./backup.data.shscript can be used to create a backup of the data folder