DKIM: add builtin macro with default list of headers for signing
[users/heiko/exim.git] / test / confs / 4520
1 # Exim test configuration 4520
2
3 SERVER=
4 OPT=
5
6 .include DIR/aux-var/std_conf_prefix
7
8 primary_hostname = myhost.test.ex
9
10 # ----- Main settings -----
11
12 acl_smtp_rcpt = accept logwrite = macro: _DKIM_SIGN_HEADERS
13 acl_smtp_dkim = accept logwrite = signer: $dkim_cur_signer bits: $dkim_key_length h=$dkim_headernames
14
15 DDIR=DIR/aux-fixed/dkim
16
17 # ----- Routers
18
19 begin routers
20
21 server_dump:
22   driver = redirect
23   condition = ${if eq {SERVER}{server}{yes}{no}}
24   data = :blackhole:
25
26 client:
27   driver = accept
28   transport = send_to_server
29
30 # ----- Transports
31
32 begin transports
33
34 send_to_server:
35   driver = smtp
36   allow_localhost
37   hosts = HOSTIPV4
38   port = PORT_D
39
40   dkim_domain =         test.ex
41 .ifdef SELECTOR
42   dkim_selector =       SELECTOR
43 .else
44   dkim_selector =       sel
45 .endif
46
47   dkim_private_key =    ${if match {$dkim_selector}{^ses}       {DDIR/dkim512.private} \
48                           {${if match {$dkim_selector}{^sel} {DDIR/dkim.private} \
49                           {}}}}
50
51 .ifndef HEADERS_MAXSIZE
52   dkim_sign_headers =   OPT
53 .else
54   dkim_identity =       allheaders@$dkim_domain
55 .endif
56 .ifdef VALUE
57   dkim_hash =           VALUE
58 .endif
59
60 # End