From d7e14243b1f2d6e63ea5d6bad5f6578844ac705c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 6 Jan 2024 11:15:06 +0000 Subject: [PATCH 1/1] Preserve case of local part for rails message delivery https://github.com/openstreetmap/operations/issues/1017 --- cookbooks/exim/templates/default/exim4.conf.erb | 3 +++ roles/web-frontend.rb | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cookbooks/exim/templates/default/exim4.conf.erb b/cookbooks/exim/templates/default/exim4.conf.erb index 635682e2e..6809a6a58 100644 --- a/cookbooks/exim/templates/default/exim4.conf.erb +++ b/cookbooks/exim/templates/default/exim4.conf.erb @@ -670,6 +670,9 @@ noreply: <% else -%> transport = <%= name %> <% end -%> +<% if details[:case_sensitive] -%> + caseful_local_part +<% end -%> <% end -%> diff --git a/roles/web-frontend.rb b/roles/web-frontend.rb index 985811f59..7ef592fcb 100644 --- a/roles/web-frontend.rb +++ b/roles/web-frontend.rb @@ -37,7 +37,8 @@ default_attributes( :user => "rails", :group => "rails", :home_directory => "/srv/www.openstreetmap.org/rails", - :path => "/bin:/usr/bin:/usr/local/bin" + :path => "/bin:/usr/bin:/usr/local/bin", + :case_sensitive => true } } } -- 2.39.5