diff options
author | 2024-09-03 16:05:36 +0100 | |
---|---|---|
committer | 2024-09-03 19:47:04 +0100 | |
commit | 8779b0f4b75bab1ed96df04360b65233da9437ed (patch) | |
tree | 33562213e0bbbd0b22e7f94b6d127d4a6ec9b278 /ansible | |
parent | Clean up mail script after feeding it to at (diff) |
Create new sender canonical map template for SRS
This template returns the address verbatim if it's a local domain else
it returns nothing. Based on this, we can use these addresses for SRS,
it will either use the verbatim address or pass onto SRSd for a rewrite.
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/roles/postfix/templates/sender-canonical-maps.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/postfix/templates/sender-canonical-maps.j2 b/ansible/roles/postfix/templates/sender-canonical-maps.j2 new file mode 100644 index 0000000..a9a9857 --- /dev/null +++ b/ansible/roles/postfix/templates/sender-canonical-maps.j2 @@ -0,0 +1,5 @@ +# {{ ansible_managed }} + +{% for domain in postfix_destination_domains %} +/^(.+@{{ domain | replace(".", "\\.") }})$/ ${1} +{% endfor %} |