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