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 %>
|
||||
Reference in New Issue
Block a user