Send forum emails with a noreply sender address
authorTom Hughes <tom@compton.nu>
Mon, 2 Jan 2017 09:15:01 +0000 (09:15 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 2 Jan 2017 09:15:01 +0000 (09:15 +0000)
cookbooks/exim/files/default/noreply/forum [new file with mode: 0644]
roles/clifford.rb

diff --git a/cookbooks/exim/files/default/noreply/forum b/cookbooks/exim/files/default/noreply/forum
new file mode 100644 (file)
index 0000000..c2f80aa
--- /dev/null
@@ -0,0 +1,9 @@
+This is an automated response to your email, which was sent to an
+unattended address.
+
+If you are having technical problems with the forums then please
+contact support@openstreetmap.org for assistance.
+
+Thank you,
+
+OpenStreetMap Administrators
index 78fc7a9..2471257 100644 (file)
@@ -2,6 +2,15 @@ name "clifford"
 description "Master role applied to clifford"
 
 default_attributes(
+  :exim => {
+    :rewrites => [
+      {
+        :pattern => "www-data@openstreetmap.org",
+        :replacement => "forum@noreply.openstreetmap.org",
+        :flags => "F"
+      }
+    ]
+  },
   :networking => {
     :interfaces => {
       :internal_ipv4 => {