+ notifies :restart, "service[exim4]"
+end
+
+template "/etc/exim4/callout_exempt_senders" do
+ source "callout_exempt_senders.erb"
+ owner "root"
+ group "Debian-exim"
+ mode 0644
+end
+
+search(:accounts, "*:*").each do |account|
+ name = account["id"]
+ details = node[:accounts][:users][name] || {}
+
+ if details[:status] and account["email"]
+ node.default[:exim][:aliases][name] = account["email"]
+ end
+end
+
+if node[:exim][:private_aliases]
+ aliases = data_bag_item("exim", "aliases")
+
+ aliases[node[:exim][:private_aliases]].each do |name,address|
+ node.default[:exim][:aliases][name] = address
+ end