From: Tom Hughes Date: Fri, 1 Jan 2021 10:27:52 +0000 (+0000) Subject: Add authentication results header for email from external hosts X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/6270f0b685e414b82dd311ad99fe4df0c3e2bfd6 Add authentication results header for email from external hosts --- 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}}