DKIM: with dkim_verify_minimal, avoid calling ACL after first pass
[exim.git] / test / confs / 4535
1 # Exim test configuration 4535
2
3 SERVER=
4 OPT=
5 FAKE =
6
7 keep_environment = PATH
8 exim_path = EXIM_PATH
9 host_lookup_order = bydns
10 spool_directory = DIR/spool
11
12 .ifdef SERVER
13 log_file_path = DIR/spool/log/SERVER%slog
14 .else
15 log_file_path = DIR/spool/log/%slog
16 .endif
17
18 gecos_pattern = ""
19 gecos_name = CALLER_NAME
20 dns_cname_loops = 9
21 chunking_advertise_hosts = *
22
23 .ifdef _HAVE_PIPE_CONNECT
24 pipelining_connect_advertise_hosts = :
25 .endif
26 .ifdef _HAVE_DMARC
27 dmarc_tld_file =
28 .endif
29 tls_advertise_hosts = *
30 tls_certificate = DIR/aux-fixed/cert1
31 tls_privatekey = DIR/aux-fixed/cert1
32
33 primary_hostname = myhost.test.ex
34
35 # ----- Main settings -----
36
37 acl_smtp_rcpt = accept logwrite = rcpt acl: macro: _DKIM_SIGN_HEADERS
38 acl_smtp_dkim = accept logwrite = dkim_acl: signer: $dkim_cur_signer bits: $dkim_key_length h=$dkim_headernames
39 acl_smtp_data = accept logwrite = data acl: dkim status $dkim_verify_status
40
41 dkim_verify_signers = $dkim_signers
42
43 DDIR=DIR/aux-fixed/dkim
44
45 log_selector = +received_recipients
46
47
48 # ----- Routers
49
50 begin routers
51
52 server_store:
53   driver =      accept
54   condition =   ${if eq {SERVER}{server}{yes}{no}}
55   transport =   file
56
57 client:
58   driver =      accept
59   transport =   send_to_server
60
61 # ----- Transports
62
63 begin transports
64
65 send_to_server:
66   driver = smtp
67   allow_localhost
68   hosts = HOSTIPV4
69   port = PORT_D
70   hosts_try_fastopen =  :
71   hosts_require_tls =   *
72   tls_verify_certificates =   DIR/aux-fixed/cert1
73   tls_verify_cert_hostnames = :
74
75 .ifdef FILTER
76   transport_filter =    /bin/cat - DIR/aux-fixed/TESTNUM.mlistfooter
77 .endif
78 .ifndef ALLOW
79   hosts_try_chunking = :
80 .endif
81
82   dkim_domain =         test.ex
83 .ifdef SELECTOR
84   dkim_selector =       SELECTOR
85 .else
86   dkim_selector =       sel
87 .endif
88
89   dkim_private_key =    ${extract {${length_3:$dkim_selector}} {\
90                                 ses=dkim512.private \
91                                 sel=dkim.private \
92                                 sed=dkim_ed25519.private \
93                                 }{DDIR/$value}}
94
95 .ifndef HEADERS_MAXSIZE
96   dkim_sign_headers =   OPT
97 .else
98   dkim_identity =       allheaders@$dkim_domain
99 .endif
100 .ifdef VALUE
101   dkim_hash =           VALUE
102 .endif
103 .ifdef STRICT
104   dkim_strict =         STRICT
105 .endif
106 .ifdef TIMES
107   dkim_timestamps =     TIMES
108 .endif
109
110 file:
111   driver =      appendfile
112   file =        DIR/test-mail/$local_part
113   create_file = DIR/test-mail
114   user =        CALLER
115
116 # End