Check for missing commandline arg after options taking one. Bug 3049
[exim.git] / test / confs / 0900
1 # Exim test configuration 0900
2 SERVER=
3 SRV=
4 LIST=
5 ALLOW=
6
7 exim_path = EXIM_PATH
8 keep_environment =
9 add_environment = SSLKEYLOGFILE=DIR/spool/sslkeys
10 host_lookup_order = bydns
11 spool_directory = DIR/spool
12 log_file_path = DIR/spool/log/SERVER%slog
13 gecos_pattern = ""
14 gecos_name = CALLER_NAME
15 chunking_advertise_hosts = *
16 .ifdef _HAVE_TLS
17 tls_advertise_hosts = ${if eq {SRV}{tls} {*}}
18 .endif
19 .ifdef _HAVE_PIPE_CONNECT
20 pipelining_connect_advertise_hosts = :
21 .endif
22 .ifdef _HAVE_DMARC
23 dmarc_tld_file =
24 .endif
25 .ifdef _OPT_MAIN_LIMITS_ADVERTISE_HOSTS
26 limits_advertise_hosts = !*
27 .endif
28
29 # ----- Main settings -----
30
31 primary_hostname = testhost.test.ex
32 domainlist local_domains = @ : test.ex
33
34 acl_smtp_rcpt = check_recipient
35 acl_smtp_data_prdr = check_prdr
36 acl_smtp_data = check_data
37 trusted_users = CALLER
38 queue_only
39 smtp_receive_timeout = 2s
40
41 .ifdef _HAVE_DKIM
42 log_selector = +received_recipients +connection_id +millisec +dkim_verbose
43 .else
44 log_selector = +received_recipients +connection_id +millisec
45 .endif
46
47 .ifdef _HAVE_TLS
48 tls_certificate = DIR/aux-fixed/cert1
49 .endif
50
51 ALLOW
52
53 # ----- ACL -----
54
55 begin acl
56
57 check_recipient:
58   accept hosts = :
59   accept domains = +local_domains
60   deny   message = relay not permitted
61
62 check_prdr:
63   accept local_parts = good
64   deny
65
66 check_data:
67   warn   message = X-acl-message-linecount: $message_linecount
68   accept
69
70 # ----- Routers -----
71
72 begin routers
73
74 to_server:
75   driver = accept
76   condition =   ${if !eq {SERVER}{server}}
77   transport =   remote_smtp${if eq {SRV}{dkim} {_dkim}}
78   errors_to =   ""
79
80 fail_remote_domains:
81   driver = redirect
82   domains = ! +local_domains
83   data = :fail: unrouteable mail domain "$domain"
84
85 localuser:
86   driver = accept
87   check_local_user
88   transport = local_delivery
89   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
90
91
92 # ----- Transports -----
93
94 begin transports
95
96 local_delivery:
97   driver = appendfile
98   delivery_date_add
99   envelope_to_add
100   file = DIR/test-mail/$local_part
101   create_file = DIR/test-mail
102   headers_add = "X-body-linecount: $body_linecount\n\
103                  X-message-linecount: $message_linecount\n\
104                  X-received-count: $received_count"
105   return_path_add
106
107 remote_smtp:
108   driver = smtp
109   hosts =       127.0.0.1
110   port =        PORT_S
111   hosts_try_fastopen = :
112 .ifdef _HAVE_TLS
113   tls_verify_certificates = DIR/aux-fixed/cert1
114   tls_verify_cert_hostnames =
115 .endif
116   allow_localhost
117   command_timeout = 2s
118   final_timeout = 2s
119
120 remote_smtp_dkim:
121   driver = smtp
122   hosts =       127.0.0.1
123   port =        PORT_S
124   hosts_try_fastopen = :
125 .ifdef _HAVE_TLS
126   tls_verify_certificates = DIR/aux-fixed/cert1
127   tls_verify_cert_hostnames =
128 .endif
129   allow_localhost
130   command_timeout = 2s
131   final_timeout = 2s
132
133 .ifdef _HAVE_DKIM
134 .ifdef SRV
135   dkim_domain =         test.ex
136   dkim_selector =       sel
137   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
138 .ifndef HEADERS_MAXSIZE
139   dkim_sign_headers =   LIST
140 .endif
141 .endif
142 .endif
143
144 # ----- Retry -----
145
146 begin retry
147 * * F,30m,5m;
148 # End