From e74f2a7bebafbff27e88161c09195ff3bfdf13d0 Mon Sep 17 00:00:00 2001 From: nelfer Date: Thu, 27 Oct 2016 11:51:51 -0400 Subject: [PATCH 1/3] Updating documentation to show how to forward all emails of one domain --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index a08337c..ff3c125 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,11 @@ $ docker run -e SMF_CONFIG="$SMF_CONFIG" -p 25:25 zixia/simple-mail-forwarder This will forward all emails received by testi@testo.com to test@test.com. +If you want to forward all emails sent to domain testo.com to all@test.com, set it like so: +```bash +$ export SMF_CONFIG='@testo.com:test@test.com' +``` + See? There is nothing easier. Quick Test @@ -99,6 +104,11 @@ Forward all emails received by testi@testo.com to test@test.com: ```bash $ export SMF_CONFIG='testi@testo.com:test@test.com' ``` + +Forward all emails received by any email address in domain testo.com to all@test.com: +```bash +$ export SMF_CONFIG='@testo.com:test@test.com' +``` > You could get the ESMTP AUTH password for you on your docker log. It's randomly generated if you do not provide one. #### 2. Advanced From ac2af658075cecdc2a34140bf6c626f8df6ab117 Mon Sep 17 00:00:00 2001 From: nelfer Date: Thu, 27 Oct 2016 11:56:22 -0400 Subject: [PATCH 2/3] Updated email sample address --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff3c125..6844038 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ This will forward all emails received by testi@testo.com to test@test.com. If you want to forward all emails sent to domain testo.com to all@test.com, set it like so: ```bash -$ export SMF_CONFIG='@testo.com:test@test.com' +$ export SMF_CONFIG='@testo.com:all@test.com' ``` See? There is nothing easier. @@ -107,7 +107,7 @@ $ export SMF_CONFIG='testi@testo.com:test@test.com' Forward all emails received by any email address in domain testo.com to all@test.com: ```bash -$ export SMF_CONFIG='@testo.com:test@test.com' +$ export SMF_CONFIG='@testo.com:all@test.com' ``` > You could get the ESMTP AUTH password for you on your docker log. It's randomly generated if you do not provide one. From 1308ebde662086ce74e1f75dff72243c1271ffe2 Mon Sep 17 00:00:00 2001 From: nelfer Date: Fri, 28 Oct 2016 00:36:29 -0400 Subject: [PATCH 3/3] Setting for encryption (gmail) A setting was added to use encryption (TLS) when forwarding emails. This is the complain of gmail when messages are not encrypted. --- install/main.dist.cf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/main.dist.cf b/install/main.dist.cf index ac266d8..b39b6ad 100644 --- a/install/main.dist.cf +++ b/install/main.dist.cf @@ -737,5 +737,5 @@ smtpd_tls_exclude_ciphers = # openssl dhparam -2 -out dh_1024.pem 1024 #smtpd_tls_dh512_param_file = ${config_directory}/cert/dh_512.pem #smtpd_tls_dh1024_param_file = ${config_directory}/cert/dh_1024.pem - +smtp_tls_security_level = may message_size_limit = 40960000