-<% if node[:exim][:smarthost_name] -%>
-
- # Reject mail that fails SPF checks
-
- deny spf = fail
- message = $sender_host_address is not allowed to send mail from \
- ${if def:sender_address_domain \
- {$sender_address_domain}{$sender_helo_name}}.
- !hosts = +relay_from_hosts
-<% end -%>