Skip to content
Snippets Groups Projects
Verified Commit c7876029 authored by David Beniamine's avatar David Beniamine
Browse files

Move custom rewrites to postfix

parent 14f6b74f
Branches
No related tags found
No related merge requests found
......@@ -39,7 +39,8 @@ graph LR
## Enable sending mails
You need to add `sympa_rewrite`, `custom_rewrites` and `sympa_transport` files to `sympa/shared/` directory:
You need to add `sympa_rewrite`, and `sympa_transport` files to `sympa/shared/` directory:
And `rewrites` to file `postfix/custom`
Example of a `sympa_rewrite` file:
......@@ -49,7 +50,7 @@ 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
`postfix/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:
......
......@@ -38,6 +38,7 @@ services:
- "./sympa/sympa/shared:/etc/sympa/shared"
- "./postfix/rsyslog:/etc/rsyslog.d1/"
- "./postfix/dkim:/etc/dkimkeys/"
- "./postfix/custom:/etc/postfix/custom"
- "./log/postfix:/var/log/postfix"
- "spool_postfix:/var/spool/postfix"
networks:
......
......@@ -13,7 +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
regexp:/etc/postfix/custom/rewrites
transport_maps =
regexp:/etc/sympa/shared/sympa_transport
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment