From 4492d7685470bdedd00afb17b94b5cbd5d6f9251 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Wed, 23 Feb 2022 16:39:26 +0100 Subject: [PATCH] Custom rewrites --- Readme.md | 4 +++- docker/postfix/etc/postfix/main.cf.append | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index d36bacf..f702914 100644 --- a/Readme.md +++ b/Readme.md @@ -39,7 +39,7 @@ graph LR ## Enable sending mails -You need to add `sympa_rewrite` and `sympa_transport` files to `sympa/shared/` directory: +You need to add `sympa_rewrite`, `custom_rewrites` and `sympa_transport` files to `sympa/shared/` directory: Example of a `sympa_rewrite` file: @@ -49,6 +49,8 @@ Example of a `sympa_rewrite` file: /(.+)-owner@(.+)/ $1+owner@$2 ``` +`custom_rewrites` can be empty, it should be used if you need to add someother aliases + Example of a `sympa_transport` file, for each domain you have Sympa providing mailing lists: ``` diff --git a/docker/postfix/etc/postfix/main.cf.append b/docker/postfix/etc/postfix/main.cf.append index fd7c4fe..7233a79 100644 --- a/docker/postfix/etc/postfix/main.cf.append +++ b/docker/postfix/etc/postfix/main.cf.append @@ -13,6 +13,7 @@ virtual_mailbox_base = /tmp virtual_alias_maps = regexp:/etc/postfix/global_alias regexp:/etc/sympa/shared/sympa_rewrite + regexp:/etc/sympa/shared/custom_rewrites transport_maps = regexp:/etc/sympa/shared/sympa_transport -- GitLab