From c752ba6bc4ea1a7beb39d61d27ae328359d76b3e Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Wed, 1 Dec 2021 11:32:46 +0100
Subject: [PATCH] Two words about sympa_rewrite and sympa_transport

---
 Readme.md | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

diff --git a/Readme.md b/Readme.md
index bdaf4cf..59798ab 100644
--- a/Readme.md
+++ b/Readme.md
@@ -35,8 +35,32 @@ graph LR
 
 1. Copy `.env.sample` to `.env` and adapt
 2. `docker-compose up --build`
-3. Go to `localhost:8081/wws` try to login and click first_login
-4. If you have not configured the sendmail part of postfix, you can find a mail with your login informations in `/var/spool/sympa/bulk/msg`
+3. Go to `localhost:8081` try to login and click first_login
+
+## Enable sending mails
+
+You need to add `sympa_rewrite` and `sympa_transport`  files to `sympa/shared/` directory:
+
+Example of a `sympa_rewrite` file:
+
+```
+/^sympa-request@/	postmaster
+/^sympa-owner@/		postmaster
+/(.+)-owner@(.+)/	$1+owner@$2
+```
+
+Example of a `sympa_transport` file, for each domain you have Sympa providing mailing lists:
+
+```
+/^sympa@example\.com$/	 sympadomain:
+/^abuse-feedback-report@example\.com$/	 sympabouncedomain:
+/^bounce\+.*@example\.com$/	 sympabouncedomain:
+/^listmaster@example\.com$/	 sympa:
+/^.+(announce|list|info|event|press|talk|news)\+owner@example\.com$/	sympabounce:
+/^.+(announce|list|info|event|press|talk|news)(-request|-editor|-subscribe|-unsubscribe)?@example\.com$/	sympa:
+```
+
+In this example, the variables `SYMPA_DOMAIN` and `POSTFIX_VIRTUAL_DOMAINS` should be `example.com`
 
 ## Configuration
 
-- 
GitLab