Scan incoming and outgoing email for spam. Use a local Unbound for DNS, so we don't run into blocks for RBL queries.
23 lines
815 B
Plaintext
23 lines
815 B
Plaintext
<% 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 %>
|