Merge branch '4.next'
[users/jgh/exim.git] / test / confs / 4520
1 # Exim test configuration 4520
2
3 SERVER=
4 OPT=
5 FAKE =
6
7 .include DIR/aux-var/std_conf_prefix
8
9 primary_hostname = myhost.test.ex
10
11 # ----- Main settings -----
12
13 acl_smtp_rcpt = accept logwrite = rcpt acl: macro: _DKIM_SIGN_HEADERS
14 acl_smtp_dkim = accept logwrite = dkim_acl: signer: $dkim_cur_signer bits: $dkim_key_length h=$dkim_headernames
15 acl_smtp_data = accept logwrite = data acl: dkim status $dkim_verify_status
16
17 dkim_verify_signers = $dkim_signers
18 .ifdef FILTER
19 dkim_verify_minimal = true
20 .endif
21
22 DDIR=DIR/aux-fixed/dkim
23
24 log_selector = -dkim +dkim_verbose +received_recipients
25
26 # ----- Routers
27
28 begin routers
29
30 server_store:
31   driver =      accept
32   condition =   ${if eq {SERVER}{server}{yes}{no}}
33   transport =   file
34
35 client:
36   driver =      accept
37   transport =   send_to_server
38
39 # ----- Transports
40
41 begin transports
42
43 send_to_server:
44   driver = smtp
45   allow_localhost
46   hosts = HOSTIPV4
47   port = PORT_D
48   hosts_try_fastopen =  :
49
50   dkim_domain =         test.ex
51 .ifdef SELECTOR
52   dkim_selector =       SELECTOR
53 .else
54   dkim_selector =       sel
55 .endif
56
57   dkim_private_key =    ${extract {${length_3:$dkim_selector}} {\
58                                 ses=dkim512.private \
59                                 sel=dkim.private \
60                                 sed=dkim_ed25519.private \
61                                 }{DDIR/$value}}
62
63 .ifndef HEADERS_MAXSIZE
64   dkim_sign_headers =   OPT
65 .else
66   dkim_identity =       allheaders@$dkim_domain
67 .endif
68 .ifdef VALUE
69   dkim_hash =           VALUE
70 .endif
71 .ifdef STRICT
72   dkim_strict =         STRICT
73 .endif
74 .ifdef TIMES
75   dkim_timestamps =     TIMES
76 .endif
77
78 file:
79   driver =      appendfile
80   file =        DIR/test-mail/$local_part
81   user =        CALLER
82
83 # End