Skip to content

Instantly share code, notes, and snippets.

@bryanwb
Created October 16, 2011 06:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanwb/1290564 to your computer and use it in GitHub Desktop.
Save bryanwb/1290564 to your computer and use it in GitHub Desktop.
Basic sendmail configuration
package 'sendmail' do
action :install
end
service 'sendmail' do
action [ :enable,:start ]
end
template "/etc/mail/sendmail.cf" do
source "sendmail.cf.erb"
notifies :restart,"service[sendmail]"
variables({ :relay_host => node['smtp_relay_host'] })
end
template "/etc/mail/relay-domains" do
source "relay-domains"
notifies :restart,"service[sendmail]"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment