summaryrefslogtreecommitdiffstats
path: root/roles/out/templates/etc/postfix/canonical.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/out/templates/etc/postfix/canonical.j2')
-rw-r--r--roles/out/templates/etc/postfix/canonical.j210
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/out/templates/etc/postfix/canonical.j2 b/roles/out/templates/etc/postfix/canonical.j2
new file mode 100644
index 0000000..ed8bb4d
--- /dev/null
+++ b/roles/out/templates/etc/postfix/canonical.j2
@@ -0,0 +1,10 @@
+# {{ ansible_managed }}
+# Do NOT edit this file directly!
+
+# Addresses under $myhostname are typically not valid as envelope
+# recipients (eg, logcheck@, root@, etc.). This breaks the sender
+# address verification, so we use the admin team's address in the
+# envelope.
+{% for host in groups.all | sort %}
+@{{ hostvars[host].inventory_hostname }} admin@fripost.org
+{% endfor %}