Fix clang build
[exim.git] / test / confs / 4530
1 # Exim test configuration 4530
2
3 SERVER=
4 OPT=
5 FAKE =
6
7 .include DIR/aux-var/tls_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 dkim_verify_min_keysizes = rsa=512 ed25519=250
19 .ifdef FILTER
20 dkim_verify_minimal = true
21 .endif
22
23 DDIR=DIR/aux-fixed/dkim
24
25 tls_certificate = DIR/aux-fixed/cert1
26 tls_privatekey = DIR/aux-fixed/cert1
27
28 log_selector = -dkim +dkim_verbose +received_recipients
29
30 # ----- Routers
31
32 begin routers
33
34 server_store:
35   driver =      accept
36   condition =   ${if eq {SERVER}{server}{yes}{no}}
37   transport =   file
38
39 client:
40   driver =      accept
41   transport =   send_to_server
42
43 # ----- Transports
44
45 begin transports
46
47 send_to_server:
48   driver = smtp
49   allow_localhost
50   hosts = HOSTIPV4
51   port = PORT_D
52   hosts_try_fastopen =  :
53   hosts_require_tls =   *
54   tls_verify_certificates =   DIR/aux-fixed/cert1
55   tls_verify_cert_hostnames = :
56
57
58   dkim_domain =         test.ex
59 .ifdef SELECTOR
60   dkim_selector =       SELECTOR
61 .else
62   dkim_selector =       sel
63 .endif
64
65   dkim_private_key =    ${extract {${length_3:$dkim_selector}} {\
66                                 ses=dkim512.private \
67                                 sel=dkim.private \
68                                 sed=dkim_ed25519.private \
69                                 }{DDIR/$value}}
70
71 .ifndef HEADERS_MAXSIZE
72   dkim_sign_headers =   OPT
73 .else
74   dkim_identity =       allheaders@$dkim_domain
75 .endif
76 .ifdef VALUE
77   dkim_hash =           VALUE
78 .endif
79 .ifdef STRICT
80   dkim_strict =         STRICT
81 .endif
82 .ifdef TIMES
83   dkim_timestamps =     TIMES
84 .endif
85
86 file:
87   driver =      appendfile
88   file =        DIR/test-mail/$local_part
89   create_file = DIR/test-mail
90   user =        CALLER
91
92 # End