Set up SpamAssassin
Scan incoming and outgoing email for spam. Use a local Unbound for DNS, so we don't run into blocks for RBL queries.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<% unless @content.nil? -%>
|
||||
<% @content.each do |key, value| %>
|
||||
<% case value %>
|
||||
<% when nil %>
|
||||
<%= key %>
|
||||
<% when String, Numeric %>
|
||||
<%= key %><% if @separator %><%= @separator %><% end %> <%= value %>
|
||||
<% when Array %>
|
||||
<% value.each do |val| %>
|
||||
<% if val.is_a?(Hash) %>
|
||||
<%= key %><% if @separator %><%= @separator %><% end %>
|
||||
<%= template_partial_indent(render('partials/_generic_config.erb', cookbook: 'unbound', variables: { content: val, separator: ':' }), 1, 2) %>
|
||||
<% else %>
|
||||
<%= key %><% if @separator %><%= @separator %><% end %> <%= val %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% when Hash %>
|
||||
<%= key %><% if @separator %><%= @separator %><% end %>
|
||||
<%= template_partial_indent(render('partials/_generic_config.erb', cookbook: 'unbound', variables: { content: value, separator: ':' }), 1, 2) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
5
cookbooks/unbound/templates/default/unbound.conf.erb
Normal file
5
cookbooks/unbound/templates/default/unbound.conf.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# Generated by Chef Infra for <%= node['fqdn'] %>
|
||||
# Do NOT modify this file by hand, any changes will be overwritten.
|
||||
|
||||
<%= render('partials/_generic_config.erb', cookbook: 'unbound', variables: { content: @content, separator: ':' }) %>
|
||||
Reference in New Issue
Block a user