summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Z.M. Gao <gaozhm@mvad.com>2016-05-03 09:09:47 +0800
committerJames Z.M. Gao <gaozhm@mvad.com>2016-05-03 09:09:47 +0800
commit787be18e5647a17fbe704624888a4efc5f268992 (patch)
tree6064d537edb5032e6a82f90ede9f7e4a5fec767e
parent897eab0ff7b1c281f571ba6b28c972c19172441d (diff)
downloaddavmail-787be18e5647a17fbe704624888a4efc5f268992.tar.gz
davmail-787be18e5647a17fbe704624888a4efc5f268992.tar.bz2
davmail-787be18e5647a17fbe704624888a4efc5f268992.tar.xz
davmail-787be18e5647a17fbe704624888a4efc5f268992.zip
update README.md
-rw-r--r--README.md36
1 files changed, 35 insertions, 1 deletions
diff --git a/README.md b/README.md
index dafacc2..88e60b7 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,36 @@
# docker-davmail
-A EWS proxy in docker.
+
+A EWS proxy in docker. Run it like this:
+
+```Bash
+VPN_SERVER=<server-domain-or-ip>
+VPN_USER=<user>
+VPN_PASSWORD=<password>
+VPN_ROUTING_IPS="172.0.0.0/8 www.google.com"
+#VPN_PPP_OPTIONS=
+#VPN_DEBUG=y
+
+```Bash
+docker run --net=host \
+ --name davmail \
+ -e DAVMAIL_URL=<url> \
+ -e DAVMAIL_SERVER_CERTIFICATE_HASH=<optional-certificate-hash>
+ -e DAVMAIL_NTLM_DOMAIN=<optional-windows-domain>
+ -d \
+ gzm55/pptp-client
+```
+
+Accepted docker environment variables:
+
+* DAVMAIL_URL: server domain or ip
+* DAVMAIL_SERVER_CERTIFICATE_HASH: optional, cirtificate hash, like 11:22:...
+* DAVMAIL_NTLM_DOMAIN: optional, windows domain
+* DAVMAIL_CONFIG_URL: a url for downloading a specific configuration, this can override all other options
+
+Listened ports:
+
+* caldav port: 1080
+* imap port: 1143
+* ldap port: 1389
+* pop3 port: 1110
+* smtp port: 1025