Supress TLS/Env warnings in checking and listing mode
[exim.git] / test / confs / 4211
1 # Exim test configuration 4201
2 # SMTPUTF8 handling
3
4 OPTION = *
5 CONTROL =
6
7 exim_path = EXIM_PATH
8 keep_environment =
9 host_lookup_order = bydns
10 spool_directory = DIR/spool
11 log_file_path = DIR/spool/log/%slog
12 gecos_pattern = ""
13 gecos_name = CALLER_NAME
14
15 # ----- Main settings -----
16
17 domainlist local_domains = test.ex : cname
18
19 acl_smtp_rcpt = check_recipient
20 acl_not_smtp = non_smtp
21
22 trusted_users = CALLER
23 log_selector = +received_recipients +sender_on_delivery
24
25 .ifdef SERVER
26 queue_only
27 queue_run_in_order
28 .endif
29
30 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
31 tls_privatekey =  ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
32 tls_advertise_hosts = *
33
34 smtputf8_advertise_hosts = OPTION
35
36
37 # ----- ACL -----
38
39 begin acl
40
41
42 .ifdef SERVER
43
44 check_recipient:
45   accept hosts = :
46   accept domains = +local_domains
47          local_parts = ^user.*\$
48   deny   message = relay not permitted
49
50 .else
51
52 sub:
53 .ifdef CONTROL
54   require CONTROL
55 .endif
56   accept
57
58 check_recipient:
59   accept domains = *
60          acl = sub
61
62 non_smtp:
63   accept senders = :
64          control = queue_only
65   accept
66
67 .endif
68
69 # ----- Routers -----
70
71 begin routers
72
73 .ifdef SERVER
74
75 fail_remote_domains:
76   driver = redirect
77   domains = ! +local_domains
78   data = :fail: unrouteable mail domain "$domain"
79
80 bounces:
81   driver = redirect
82   condition = ${if eq {} {$sender_address}}
83   data = DIR/test-mail/$local_part
84   file_transport = local_delivery
85
86 localuser:
87   driver = redirect
88   data = :blackhole:
89
90 .else
91
92 bounces:
93   driver = redirect
94   domains = *.local
95   data = DIR/test-mail/$local_part
96   file_transport = local_delivery
97
98 rmt:
99   driver = manualroute
100   domains = +local_domains
101   route_data = <;[127.0.0.1]:PORT_D
102   transport = rmt_smtp
103   self = send
104
105 .endif
106
107 # ----- Transports -----
108
109 begin transports
110
111 local_delivery:
112   driver = appendfile
113   user = CALLER
114   delivery_date_add
115   envelope_to_add
116   file = DIR/test-mail/$local_part
117   headers_add = "X-body-linecount: $body_linecount\n\
118                  X-message-linecount: $message_linecount\n\
119                  X-received-count: $received_count"
120   return_path_add
121
122 rmt_smtp:
123   driver = smtp
124   hosts_require_tls = *
125   tls_try_verify_hosts = :
126
127 # End