Move the LMDB lokup support from Experimental to mainline
[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 .ifdef _HAVE_PIPE_CONNECT
14 pipelining_connect_advertise_hosts =
15 .endif
16 .ifdef _HAVE_DMARC
17 dmarc_tld_file =
18 .endif
19
20 # ----- Main settings -----
21
22 spool_wireformat = true
23
24 primary_hostname = testhost.test.ex
25 domainlist local_domains = @ : test.ex
26
27 acl_smtp_rcpt = acl_r
28
29 .ifdef _HAVE_DKIM
30 log_selector = +received_recipients +dkim_verbose
31 .else
32 log_selector = +received_recipients
33 .endif
34
35
36 .ifdef _OPT_MAIN_TLS_CERTIFICATE
37 tls_certificate = DIR/aux-fixed/cert1
38 tls_privatekey = DIR/aux-fixed/cert1
39 .endif
40
41 queue_run_in_order = true
42
43 # ----- ACL -----
44
45 begin acl
46 acl_r:
47  accept condition = ${if != {$received_port}{PORT_S}}
48         control = queue_only
49  accept
50
51 # ----- Routers -----
52
53 begin routers
54
55 to_server:
56   driver = accept
57   condition =   ${if = {$received_port}{PORT_S}}
58   transport =   remote_smtp${if eq {OPT}{dkim} {_dkim}}
59   errors_to =   ""
60
61 fail_remote_domains:
62   driver = redirect
63   domains = ! +local_domains
64   data = :fail: unrouteable mail domain "$domain"
65
66 localuser:
67   driver = accept
68   transport = local_delivery
69
70
71 # ----- Transports -----
72
73 begin transports
74
75 local_delivery:
76   driver = appendfile
77   file = DIR/test-mail/${bless:$local_part}
78   headers_add = "X-body-linecount: $body_linecount\n\
79                  X-message-linecount: $message_linecount\n\
80                  X-received-count: $received_count"
81   return_path_add
82   user = CALLER
83
84 remote_smtp:
85   driver = smtp
86   hosts =       127.0.0.1
87   port =        PORT_D
88   hosts_try_fastopen = :
89   allow_localhost
90
91 remote_smtp_dkim:
92   driver = smtp
93   hosts =       127.0.0.1
94   port =        PORT_D
95   hosts_try_fastopen = :
96   allow_localhost
97
98 .ifdef OPT
99   dkim_domain =         test.ex
100   dkim_selector =       sel
101   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
102 .ifndef HEADERS_MAXSIZE
103   dkim_sign_headers =   LIST
104 .endif
105 .endif
106
107 # ----- Retry -----
108
109 begin retry
110 * * F,30m,5m;
111 # End