]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/exim/templates/default/exim4.conf.erb
Add authentication results header for email from external hosts
[chef.git] / 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}}