]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/templates/default/report.rb.erb
Invoke exim directly to send chef error reports
[chef.git] / cookbooks / chef / templates / default / report.rb.erb
index 20e32ef4fccea228512250a50e68e2aaaf29e1a8..d00a498a6d54b2b2bfe580999c128abc1447a42a 100644 (file)
@@ -31,6 +31,10 @@ class Chef
 
         require "mail"
 
+        Mail.defaults do
+          mail.delivery_method :exim, :location => "/usr/sbin/exim"
+        end
+
         Mail.deliver do
           to to_address
           from from_address