Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 102501fcbd
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (23 sloc) 0.511 kB
#
# Cookbook Name:: sendmail
# Recipe:: default
#
# Copyright 2011, Woof! Inc. Bryan Berry (bryan.berry@gmail.com)
#
# Apache 2.0 license
#
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
Jump to Line
Something went wrong with that request. Please try again.