/docker-dovecot

Primary LanguageDockerfileMIT LicenseMIT

dovecot image

This image provides an unofficial dockerized dovecot image.

Table of Contents

  1. Supported tags and versions
  2. Quick reference
  3. How to use this image
    1. Run the container
    2. Use custom container
    3. Use bind mounts
    4. Available volumes

Supported tags and versions

Quick reference

How to use this image

Run the container

This container has no default configuration. You need to either build your own container with this as base and COPY your configuration, or you can use bind mounts.

Use custom container

FROM g0dscookie/dovecot:2.3
COPY config /etc/dovecot/dovecot.cfg

Now build your container with $ docker build -t my-dovecot ..

Use bind mounts

$ docker run -d --name my-dovecot -v /path/to/config:/conf:ro -v /my/certificates:/certificates:ro -v /path/to/data:/data g0dscookie/dovecot

Note that /path/to/config is a directory.

Available volumes

  • /data
    • Here you can store your mails
  • /certificates
    • Here you can mount your certificates used by dovecot.
  • /conf
    • Dovecot configuration files.
  • /sieve-pipe
    • Here you can mount extra programs which you can then use in your configuration for sieve-pipe.
  • /sieve-filter
    • Here you can mount extra programs which you can then use in your configuration for sieve-filter.

Update instructions

  1. Add new dovecot version to build.py
  2. make VERSION="<VERSION>"
    1. Omit VERSION= or set <VERSION> to latest if you are building a latest version.
  3. make push
  4. Commit your changes and push them