From 220681f469a2f27a869ca19199275f19e772c67c Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Wed, 10 Feb 2016 09:39:41 +0100 Subject: [PATCH] Updated FAQ (markdown) --- docs/content/config/troubleshooting/faq.md | 31 +++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/docs/content/config/troubleshooting/faq.md b/docs/content/config/troubleshooting/faq.md index 6d707221..e2ccfc6b 100644 --- a/docs/content/config/troubleshooting/faq.md +++ b/docs/content/config/troubleshooting/faq.md @@ -7,6 +7,35 @@ You'll probably want to `push` your config updates to your server and restart th Mails are stored in `/var/mail/${domain}/${username}`. You should use a [data volume container](https://medium.com/@ramangupta/why-docker-data-containers-are-good-589b3c6c749e#.uxyrp7xpu) for `/var/mail` for data persistence. Otherwise, your data may be lost. +### How can I use data volume container as proposed above? + +Here is a `docker-compose.yml` example which use a data volume container for email storage named `maildata`. + + maildata: + image: ubuntu + volumes: + - /var/mail + command: /bin/true + + mail: + image: "tvial/docker-mailserver" + hostname: "mail" + domainname: "domain.com" + volumes_from: + - maildata + ports: + - "25:25" + - "143:143" + - "587:587" + - "993:993" + volumes: + - ./spamassassin:/tmp/spamassassin/ + - ./postfix:/tmp/postfix/ + - ./opendkim/keys:/etc/opendkim/keys + - ./letsencrypt/etc:/etc/letsencrypt + environment: + - DMS_SSL=letsencrypt + ### What about backups? Assuming that you use `docker-compose` and a data volume container named `maildata`, you can backup your user mails like this: @@ -39,4 +68,4 @@ Antispam rules are managed in `spamassassin/rules.cf`. ### What kind of SSL certificates can I use? You can use the same certificates you use with another mail server. -The only thing is that we provide a `self-signed` certificate tool and a `letsencrypt` certificate loader. +The only thing is that we provide a `self-signed` certificate tool and a `letsencrypt` certificate loader. \ No newline at end of file