File tree 1 file changed +18
-0
lines changed
cookbooks/exim/templates/default
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ hostlist relay_from_hosts = <; <%= @relay_from_hosts.join(" ; ") %>
107
107
# manual for details. The lists above are used in the access control lists for
108
108
# checking incoming messages. The names of these ACLs are defined here:
109
109
110
+ acl_smtp_mail = acl_check_mail
110
111
acl_smtp_rcpt = acl_check_rcpt
111
112
acl_smtp_data = acl_check_data
112
113
@@ -377,6 +378,23 @@ smtp_accept_max = <%= node[:exim][:smtp_accept_max] %>
377
378
378
379
begin acl
379
380
381
+ # This access control list is used for the MAIL command in an incoming
382
+ # SMTP message.
383
+
384
+ acl_check_mail:
385
+ <% if node [ :exim ] [ :smarthost_name ] -%>
386
+
387
+ # Reject mail that fails SPF checks
388
+
389
+ deny spf = fail
390
+ message = $sender_host_address is not allowed to send mail from \
391
+ ${if def:sender_address_domain \
392
+ {$sender_address_domain}{$sender_helo_name}}.
393
+ !hosts = +relay_from_hosts
394
+ <% end -%>
395
+
396
+ accept
397
+
380
398
# This access control list is used for every RCPT command in an incoming
381
399
# SMTP message. The tests are run in order until the address is either
382
400
# accepted or denied.
You can’t perform that action at this time.
0 commit comments