Backup the whole messages and folders of nearly any imap server.
3.8K
Unofficial imapgrab Dockerfile for backing up all folders of an imap server.
After installing docker, just run the following command:
docker pull maxkratz/imapgrab:latest
You can use the following environment variables for customization of this container:
MAILHOST # Hostname of the imap server
MAILUSER # Login-Name (mailbox)
MAILPASSWORD # Password (mailbox)
MAILFOLDER # Subfolder for creating the backup
MAILLOG # If set to true, container will create a log instead of using console output
One may mount a folder of the host to /mnt within the container to enable persistent backups of imap servers.
docker run -it -e "MAILHOST=mail.example.net" -e "[email protected]" -e "MAILPASSWORD=secure123" -e "MAILFOLDER=mybackup" -e "MAILLOG=TRUE" -v /home/maxkratz/email-backups/:/mnt maxkratz/imapgrab:latest
Creates a backup of all files and folders of the mailbox [email protected] with password secure123 at host mail.example.net inclusive logs into subfolder mybackup.
The Dockerfile can be found at: https://github.com/maxkratz/docker_imapgrab/blob/main/Dockerfile
The following packages are installed within this docker container:
Content type
Image
Digest
sha256:ff300d53c…
Size
516.1 MB
Last updated
5 months ago
docker pull maxkratz/imapgrab