]> git.openstreetmap.org Git - chef.git/commitdiff
Add authentication results header for email from external hosts
authorTom Hughes <tom@compton.nu>
Fri, 1 Jan 2021 10:27:52 +0000 (10:27 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 1 Jan 2021 10:27:52 +0000 (10:27 +0000)
cookbooks/exim/templates/default/exim4.conf.erb

index 17160ecf3a4290fb45711cb595b5256ef56bfb1e..1f6fc31d5481fc88ad4bdb80f5dd0e0dc235fe1d 100644 (file)
@@ -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}}