Testsuite: testcases for DKIM under TLS
[exim.git] / test / confs / 4535
1 # Exim test configuration 4535
2
3 SERVER=
4 OPT=
5 FAKE =
6
7 keep_environment = PATH
8 exim_path = EXIM_PATH
9 host_lookup_order = bydns
10 spool_directory = DIR/spool
11
12 .ifdef SERVER
13 log_file_path = DIR/spool/log/SERVER%slog
14 .else
15 log_file_path = DIR/spool/log/%slog
16 .endif
17
18 gecos_pattern = ""
19 gecos_name = CALLER_NAME
20 dns_cname_loops = 9
21 chunking_advertise_hosts = *
22
23 .ifdef _HAVE_PIPE_CONNECT
24 pipelining_connect_advertise_hosts = :
25 .endif
26 .ifdef _HAVE_DMARC
27 dmarc_tld_file =
28 .endif
29 tls_advertise_hosts = *
30
31 primary_hostname = myhost.test.ex
32
33 # ----- Main settings -----
34
35 acl_smtp_rcpt = accept logwrite = rcpt acl: macro: _DKIM_SIGN_HEADERS
36 acl_smtp_dkim = accept logwrite = dkim_acl: signer: $dkim_cur_signer bits: $dkim_key_length h=$dkim_headernames
37 acl_smtp_data = accept logwrite = data acl: dkim status $dkim_verify_status
38
39 dkim_verify_signers = $dkim_signers
40
41 DDIR=DIR/aux-fixed/dkim
42
43 log_selector = +received_recipients
44
45
46 # ----- Routers
47
48 begin routers
49
50 server_store:
51   driver =      accept
52   condition =   ${if eq {SERVER}{server}{yes}{no}}
53   transport =   file
54
55 client:
56   driver =      accept
57   transport =   send_to_server
58
59 # ----- Transports
60
61 begin transports
62
63 send_to_server:
64   driver = smtp
65   allow_localhost
66   hosts = HOSTIPV4
67   port = PORT_D
68   hosts_try_fastopen =  :
69   hosts_require_tls =   *
70
71 .ifdef FILTER
72   transport_filter =    /bin/cat - DIR/aux-fixed/TESTNUM.mlistfooter
73 .endif
74 .ifndef ALLOW
75   hosts_try_chunking = :
76 .endif
77
78   dkim_domain =         test.ex
79 .ifdef SELECTOR
80   dkim_selector =       SELECTOR
81 .else
82   dkim_selector =       sel
83 .endif
84
85   dkim_private_key =    ${extract {${length_3:$dkim_selector}} {\
86                                 ses=dkim512.private \
87                                 sel=dkim.private \
88                                 sed=dkim_ed25519.private \
89                                 }{DDIR/$value}}
90
91 .ifndef HEADERS_MAXSIZE
92   dkim_sign_headers =   OPT
93 .else
94   dkim_identity =       allheaders@$dkim_domain
95 .endif
96 .ifdef VALUE
97   dkim_hash =           VALUE
98 .endif
99 .ifdef STRICT
100   dkim_strict =         STRICT
101 .endif
102 .ifdef TIMES
103   dkim_timestamps =     TIMES
104 .endif
105
106 file:
107   driver =      appendfile
108   file =        DIR/test-mail/$local_part
109   create_file = DIR/test-mail
110   user =        CALLER
111
112 # End