From: Tom Hughes Date: Thu, 24 Nov 2022 21:35:34 +0000 (+0000) Subject: Configure the mail command to use SMTP instead of sendmail X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/8418659704c0c8ecfdbce4dd8c2ed27bf1a33008 Configure the mail command to use SMTP instead of sendmail --- diff --git a/cookbooks/exim/recipes/default.rb b/cookbooks/exim/recipes/default.rb index e8e333b9b..62b874e2a 100644 --- a/cookbooks/exim/recipes/default.rb +++ b/cookbooks/exim/recipes/default.rb @@ -25,6 +25,7 @@ package %w[ exim4 openssl ssl-cert + mailutils ] package "exim4-daemon-heavy" do @@ -211,6 +212,13 @@ remote_directory "/etc/exim4/noreply" do purge true end +template "/etc/mail.rc" do + source "mail.rc.erb" + owner "root" + group "root" + mode "644" +end + munin_plugin "exim_mailqueue" munin_plugin "exim_mailstats" diff --git a/cookbooks/exim/templates/default/mail.rc.erb b/cookbooks/exim/templates/default/mail.rc.erb new file mode 100644 index 000000000..253cebb10 --- /dev/null +++ b/cookbooks/exim/templates/default/mail.rc.erb @@ -0,0 +1,3 @@ +# DO NOT EDIT - This file is being maintained by Chef + +set sendmail="smtp://localhost"