Routers: named variables
[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
19 DDIR=DIR/aux-fixed/dkim
20
21 log_selector = -dkim +dkim_verbose
22
23 # ----- Routers
24
25 begin routers
26
27 server_store:
28   driver =      accept
29   condition =   ${if eq {SERVER}{server}{yes}{no}}
30   transport =   file
31
32 client:
33   driver =      accept
34   transport =   send_to_server
35
36 # ----- Transports
37
38 begin transports
39
40 send_to_server:
41   driver = smtp
42   allow_localhost
43   hosts = HOSTIPV4
44   port = PORT_D
45
46   dkim_domain =         test.ex
47 .ifdef SELECTOR
48   dkim_selector =       SELECTOR
49 .else
50   dkim_selector =       sel
51 .endif
52
53   dkim_private_key =    ${extract {${length_3:$dkim_selector}} {\
54                                 ses=dkim512.private \
55                                 sel=dkim.private \
56                                 sed=dkim_ed25519.private \
57                                 }{DDIR/$value}}
58
59 .ifndef HEADERS_MAXSIZE
60   dkim_sign_headers =   OPT
61 .else
62   dkim_identity =       allheaders@$dkim_domain
63 .endif
64 .ifdef VALUE
65   dkim_hash =           VALUE
66 .endif
67 .ifdef STRICT
68   dkim_strict =         STRICT
69 .endif
70 .ifdef TIMES
71   dkim_timestamps =     TIMES
72 .endif
73
74 file:
75   driver =      appendfile
76   file =        DIR/test-mail/$local_part
77   user =        CALLER
78
79 # End