From 6270f0b685e414b82dd311ad99fe4df0c3e2bfd6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 1 Jan 2021 10:27:52 +0000 Subject: [PATCH] Add authentication results header for email from external hosts --- cookbooks/exim/templates/default/exim4.conf.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cookbooks/exim/templates/default/exim4.conf.erb b/cookbooks/exim/templates/default/exim4.conf.erb index 17160ecf3..1f6fc31d5 100644 --- a/cookbooks/exim/templates/default/exim4.conf.erb +++ b/cookbooks/exim/templates/default/exim4.conf.erb @@ -550,9 +550,13 @@ acl_check_data: !hosts = +relay_from_hosts message = This message failed local spam checks. - # Accept the message. + # Accept messages from relay hosts without modification. - accept + accept hosts = +relay_from_hosts + + # Accept messages from external hosts and add authentication results. + + accept add_header = :at_start:${authresults {$primary_hostname}} -- 2.39.5