]> git.openstreetmap.org Git - chef.git/commitdiff
Use callout verification for domains we are relaying to
authorTom Hughes <tom@compton.nu>
Mon, 20 Nov 2023 09:27:43 +0000 (09:27 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 20 Nov 2023 09:27:43 +0000 (09:27 +0000)
cookbooks/exim/templates/default/exim4.conf.erb

index 6babb839a208c80fe1975e23c9f737ecae420f15..635682e2ea2407aaa6d9df50897b3a3ba58de8dc 100644 (file)
@@ -506,7 +506,11 @@ acl_check_rcpt:
   # relay domains is to use a callout (add /callout), but please read the
   # documentation about callouts before doing this.
 
-  require verify = recipient
+  deny    domains = +relay_to_domains
+         !verify  = recipient/callout=use_sender
+
+  deny    domains = !+relay_to_domains
+         !verify  = recipient
 
 <% if node[:exim][:dns_blacklists] -%>
   # Deny any messages from hosts in certain blacklists.