Fix crash associated with dnsdb lookup done from DKIM ACL. Bug 2215
[users/jgh/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 BAD
22   warn  logwrite =      ${lookup dnsdb{defer_never,txt=_adsp._domainkey.$dkim_cur_signer}{$value}{unknown}}
23 .endif
24 .ifdef OPTION
25   warn  condition =     ${if eq {$dkim_algo}{rsa-sha1}}
26         condition =     ${if eq {$dkim_verify_status}{pass}}
27         logwrite =      NOTE: forcing dkim verify fail (was pass)
28         set dkim_verify_status = fail
29         set dkim_verify_reason = hash too weak
30 .endif
31   accept
32         logwrite = signer: $dkim_cur_signer bits: $dkim_key_length
33
34 # End