DKIM: Allow the DKIM ACL to override verification results. Bug 2186
[exim.git] / test / confs / 4500
1 # Exim test configuration 4500
2
3 SERVER=
4
5 .include DIR/aux-var/std_conf_prefix
6
7 primary_hostname = myhost.test.ex
8
9 # ----- Main settings -----
10
11 acl_smtp_rcpt = accept
12 acl_smtp_dkim = check_dkim
13
14 queue_only
15 queue_run_in_order
16
17
18 begin acl
19
20 check_dkim:
21 .ifdef OPTION
22   warn  condition =     ${if eq {$dkim_algo}{rsa-sha1}}
23         condition =     ${if eq {$dkim_verify_status}{pass}}
24         logwrite =      NOTE: forcing dkim verify fail (was pass)
25         set dkim_verify_status = fail
26         set dkim_verify_reason = hash too weak
27 .endif
28   accept
29         logwrite = signer: $dkim_cur_signer bits: $dkim_key_length
30
31 # End