Coder Social home page Coder Social logo

docker_offlineimap's Introduction

docker_offlineimap

Build Docker images

Unofficial OfflineIMAP Dockerfile for backing up all folders of an imap server.

Quickstart

After installing docker, just run the following command:

docker pull maxkratz/offlineimap:latest

Environment variables

You can use the following environment variables for customization of this container:

MAILLOG # If set to true, container will create a log instead of using console output

Mount volumes or bind folders

One may mount a folder of the host to /mnt/mail within the container to enable persistent backups of imap servers.

  • /mnt/mail may be used as backup target.
  • /mnt/config will be used as config. Be sure to place a file named offlineimap.conf with a valid configuration in here.
  • /mnt/secret may be used as folder to get secrets from. You can e.g. place password files in this folder and use them in your config file.
  • /mnt/log will be used as log target (if environment variable is set).

Full example command

docker run -it -v ~/email-backups/offlineimap-config:/mnt/config -v ~/email-backups/offlineimap-secret:/mnt/secret -v ~/email-backups/offlineimap-mail:/mnt/mail -v ~/email-backups/offlineimap-log:/mnt/log -e MAILLOG=TRUE maxkratz/offlineimap:latest

offlineimap.conf

[general]
accounts = personal-mail

[Account personal-mail]
localrepository = local-personal-mail
remoterepository = remote-personal-mail

[Repository local-personal-mail]
type = Maildir
localfolders = /mnt/mail

[Repository remote-personal-mail]
type = IMAP
remotehost = imap.example.com
remoteuser = user123
remotepassfile = /mnt/secret/password.conf
sslcacertfile = /etc/ssl/certs/ca-certificates.crt

password.conf

MyPassword123

Please notice that this container provides validated CAs in folder shown above.

Dockerfile

The Dockerfile can be found at: https://github.com/maxkratz/docker_offlineimap/blob/main/Dockerfile

What gets installed in this container?

The following packages are installed within this docker container:

  • Some utility packages like locales, bash-completion, ca-certificates etc.
  • OfflineIMAP (thats the whole point ...)

docker_offlineimap's People

Contributors

maxkratz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

aigoncharov

docker_offlineimap's Issues

Add date-based tags on Dockerhub

Hi there,
Would you consider adding a release tag on Dockerhub? Using :latest is never safe as things might break unexpectedly.
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.