]> git.openstreetmap.org Git - chef.git/commitdiff
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 78fc7a93ee0a7b1723add0655d8c27c3b54a35a7..2471257396b027f3aafb55242c810179ae47d056 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 => {