Prototype for strchrnul() on platforms lacking one (OpenBSD)
[exim.git] / test / confs / 4510
1 # Exim test configuration 4510
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 = check_dkim_sig
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 log_selector = -dkim +dkim_verbose +received_recipients
26
27 # ----- ACL
28 begin acl
29
30 check_dkim_sig:
31   warn  logwrite =      dkim_acl: signer: $dkim_cur_signer bits: $dkim_key_length \
32                                 h=$dkim_headernames status: $dkim_verify_status
33   accept
34
35 # ----- Routers
36
37 begin routers
38
39 server_store:
40   driver =      accept
41   condition =   ${if eq {SERVER}{server}{yes}{no}}
42   transport =   file
43
44 client:
45   driver =      accept
46   transport =   send_to_server
47
48 # ----- Transports
49
50 begin transports
51
52 send_to_server:
53   driver = smtp
54   allow_localhost
55   hosts = HOSTIPV4
56   port = PORT_D
57   hosts_try_fastopen =  :
58
59   dkim_domain =         test.ex
60 .ifdef SELECTOR
61   dkim_selector =       SELECTOR
62 .else
63   dkim_selector =       sel
64 .endif
65
66   dkim_private_key =    ${extract {${length_3:$dkim_selector}} {\
67                                 ses=dkim512.private \
68                                 sel=dkim.private \
69                                 sed=dkim_ed25519.private \
70                                 }{DDIR/$value}}
71
72 .ifndef HEADERS_MAXSIZE
73   dkim_sign_headers =   OPT
74 .else
75   dkim_identity =       allheaders@$dkim_domain
76 .endif
77 .ifdef VALUE
78   dkim_hash =           VALUE
79 .endif
80 .ifdef STRICT
81   dkim_strict =         STRICT
82 .endif
83 .ifdef TIMES
84   dkim_timestamps =     TIMES
85 .endif
86
87 file:
88   driver =      appendfile
89   file =        DIR/test-mail/$local_part
90   create_file = DIR/test-mail
91   user =        CALLER
92
93 # End