# This file is being managed by Puppet.
# /etc/puppet/modules/spamassassin/templates/local.cf.erb
#
# Data is sourced from hiera, predominantly data/common.yaml
#
###########################################################################


use_bayes 		0
#use_auto_whitelist 	0
required_hits 		10
lock_method 		flock
skip_rbl_checks 	0
#check_mx_attempts 	0
report_safe 		1
use_pyzor 		0
use_razor2 		0
dns_available 		yes
remove_header 		all Report

<% if @trusted_networks %>
trusted_networks <%= @trusted_networks %>
<% end %>

<% @whitelist_from.each do |val| -%>
whitelist_from <%= val %>
<% end -%>
<% @blacklist_from.each do |val| -%>
blacklist_from <%= val %>
<% end -%>


<% 
  custom_scoring = scope.lookupvar('spamassassin::spamd::custom_scoring') 
-%> 


<% if @custom_scoring %>
# Custom Scoring
<% custom_scoring.each_pair do |key, hash| -%>
score <%= hash['name'] %> 			<%= hash['score'] %>
<% end -%>
<% end %>





# This file is being managed by Puppet.
# /etc/puppet/modules/spamassassin/templates/local.cf.erb
#
# Data is sourced from hiera, predominantly data/common.yaml
#
###########################################################################


use_bayes 		0
#use_auto_whitelist 	0
required_hits 		10
lock_method 		flock
skip_rbl_checks 	0
#check_mx_attempts 	0
report_safe 		1
use_pyzor 		0
use_razor2 		0
dns_available 		yes
remove_header 		all Report

<% if @trusted_networks %>
trusted_networks <%= @trusted_networks %>
<% end %>

<% @whitelist_to.each do |val| -%>
whitelist_to <%= val %>
<% end -%>
<% @whitelist_from.each do |val| -%>
whitelist_from <%= val %>
<% end -%>
<% @blacklist_from.each do |val| -%>
blacklist_from <%= val %>
<% end -%>


<% 
  custom_scoring = scope.lookupvar('spamassassin::spamd::custom_scoring') 
-%> 


<% if @custom_scoring %>
# Custom Scoring
<% custom_scoring.each_pair do |key, hash| -%>
score <%= hash['name'] %> 			<%= hash['score'] %>
<% end -%>
<% end %>





Add support for specifying whitelist_to addresses
Add support for specifying whitelist_to addresses
