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