Support wire-format spoolfiles
[users/heiko/exim.git] / test / confs / 0906
1 # Exim test configuration 0906
2 SERVER=
3
4 exim_path = EXIM_PATH
5 keep_environment =
6 host_lookup_order = bydns
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/SERVER%slog
9 gecos_pattern = ""
10 gecos_name = CALLER_NAME
11 chunking_advertise_hosts = *
12 tls_advertise_hosts = ${if eq {SRV}{tls} {*}}
13
14 # ----- Main settings -----
15
16 spool_wireformat = true
17
18 primary_hostname = testhost.test.ex
19 domainlist local_domains = @ : test.ex
20
21 acl_smtp_rcpt = accept
22 log_selector = +received_recipients
23
24 .ifdef _OPT_MAIN_TLS_CERTIFICATE
25 tls_certificate = DIR/aux-fixed/cert1
26 tls_privatekey = DIR/aux-fixed/cert1
27 .endif
28
29 # ----- ACL -----
30
31 # ----- Routers -----
32
33 begin routers
34
35 to_server:
36   driver = accept
37   condition =   ${if = {$received_port}{PORT_S}}
38   transport =   remote_smtp${if eq {OPT}{dkim} {_dkim}}
39   errors_to =   ""
40
41 fail_remote_domains:
42   driver = redirect
43   domains = ! +local_domains
44   data = :fail: unrouteable mail domain "$domain"
45
46 localuser:
47   driver = accept
48   transport = local_delivery
49
50
51 # ----- Transports -----
52
53 begin transports
54
55 local_delivery:
56   driver = appendfile
57   file = DIR/test-mail/$local_part
58   headers_add = "X-body-linecount: $body_linecount\n\
59                  X-message-linecount: $message_linecount\n\
60                  X-received-count: $received_count"
61   return_path_add
62   user = CALLER
63
64 remote_smtp:
65   driver = smtp
66   hosts =       127.0.0.1
67   port =        PORT_D
68   allow_localhost
69
70 remote_smtp_dkim:
71   driver = smtp
72   hosts =       127.0.0.1
73   port =        PORT_D
74   allow_localhost
75
76 .ifdef OPT
77   dkim_domain =         test.ex
78   dkim_selector =       sel
79   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
80 .ifndef HEADERS_MAXSIZE
81   dkim_sign_headers =   LIST
82 .endif
83 .endif
84
85 # ----- Retry -----
86
87 begin retry
88 * * F,30m,5m;
89 # End