TLS: Default tls_advertise_hosts to "*". Bug 1709
[exim.git] / test / confs / 5700
1 # Exim test configuration 5700
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 spool_directory = DIR/spool
6 log_file_path = DIR/spool/log/%slog
7 gecos_pattern = ""
8 gecos_name = CALLER_NAME
9 tls_advertise_hosts =
10
11 # ----- Main settings -----
12
13 acl_smtp_rcpt = accept
14 acl_smtp_data = accept
15
16 event_action = ${acl {logger}}
17
18
19 # ----- ACL -----
20
21 begin acl
22
23 ev_tcp:
24     accept condition = ${if eq {$event_name}{tcp:connect}}
25            logwrite = . [$host_address]:$host_port
26     accept condition = ${if eq {$event_name}{tcp:close}}
27            logwrite = . [$sending_ip_address] -> \
28                         [$host_address]:$host_port
29     accept
30
31 ev_smtp:
32     accept
33            logwrite = . [$sending_ip_address] -> \
34                         [$host_address]:$host_port
35            logwrite = . banner <$event_data>
36
37 ev_msg_fail:
38     accept condition = ${if eq {$event_name}{msg:fail:delivery}}
39            logwrite = . \
40             refused by fdqn <$host> \
41             local_part <$local_part> \
42             domain <$domain> \
43
44     accept logwrite = . \
45             local_part <$local_part> \
46             domain <$domain> \
47             reason <$event_data>
48
49 ev_msg:
50     accept condition = ${if eq {fail} {${listextract{2}{$event_name}}}}
51            acl = ev_msg_fail
52
53     accept condition = ${if eq {$event_name}{msg:complete}}
54            logwrite = . finished: $message_exim_id
55
56     accept condition = ${if !eq {$domain}{domain1}}
57            logwrite = $this_expansion_will_fail
58
59     accept condition = ${if eq {$event_name}{msg:delivery}}
60            logwrite = . \
61             delivery \
62             ip <$host_address> \
63             port <$host_port> \
64             fqdn <$host> \
65             local_part <$local_part> \
66             domain <$domain> \
67             confirmation <$event_data> \
68             router <$router_name> \
69             transport <$transport_name>
70
71     accept condition = ${if eq {$event_name}{msg:host:defer}}
72            logwrite = . \
73             deferral \
74             ip <$host_address> \
75             port <$host_port> \
76             fqdn <$host> \
77             local_part <$local_part> \
78             domain <$domain> \
79             errno <$event_defer_errno> \
80             errstr <$event_data> \
81             router <$router_name> \
82             transport <$transport_name>
83
84 logger:
85     warn   logwrite = event $event_name
86     accept condition = ${if eq {tcp} {${listextract{1}{$event_name}}}}
87            acl = ev_tcp
88     accept condition = ${if eq {smtp} {${listextract{1}{$event_name}}}}
89            acl = ev_smtp
90     accept condition = ${if eq {msg} {${listextract{1}{$event_name}}}}
91            acl = ev_msg
92
93
94 # ----- Routers -----
95
96 begin routers
97
98 dump_bounces:
99   driver = redirect
100   senders = :
101   data = :blackhole:
102
103 others:
104   driver = manualroute
105   route_list = * 127.0.0.1 byname
106   self = send
107   transport = smtp
108   no_more
109
110
111 # ----- Transports -----
112
113 begin transports
114
115 smtp:
116   driver = smtp
117   port = PORT_S
118   command_timeout = 1s
119   final_timeout = 1s
120   event_action =   ${acl {logger}}
121
122 # End