Merge branch 'master' into dane
[users/heiko/exim.git] / test / confs / 5700
1 # Exim test configuration 5700
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 rfc1413_query_timeout = 0s
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/%slog
8 gecos_pattern = ""
9 gecos_name = CALLER_NAME
10
11 # ----- Main settings -----
12
13 acl_smtp_rcpt = accept
14 acl_smtp_data = accept
15
16
17 # ----- ACL -----
18
19 begin acl
20
21 ev_tcp:
22     accept condition = ${if eq {$tpda_event}{tcp:connect}}
23            logwrite = . [$host_address]:$sending_port
24     accept condition = ${if eq {$tpda_event}{tcp:close}}
25            logwrite = . [$sending_ip_address] -> \
26                         [$host_address]:$host_port
27     accept
28
29 ev_smtp:
30     accept
31            logwrite = . [$sending_ip_address] -> \
32                         [$host_address]:$host_port
33            logwrite = . banner <$tpda_data>
34
35 ev_msg:
36     accept condition = ${if !eq {$acl_arg2}{domain1}}
37            logwrite = $this_expansion_will_fail
38
39     accept condition = ${if eq {$acl_arg1}{msg:delivery}}
40            logwrite = . \
41             delivery \
42             ip <$host_address> \
43             port <$host_port> \
44             fqdn <$host> \
45             local_part <$local_part> \
46             domain <$domain> \
47             confirmation <$tpda_data> \
48             router <$router_name> \
49             transport <$transport_name>
50
51     accept condition = ${if eq {$acl_arg1}{msg:host:defer}}
52            logwrite = . \
53             deferral \
54             ip <$host_address> \
55             port <$host_port> \
56             fqdn <$host> \
57             local_part <$local_part> \
58             domain <$domain> \
59             errno <$tpda_defer_errno> \
60             errstr <$tpda_data> \
61             router <$router_name> \
62             transport <$transport_name>
63
64 logger:
65     warn   logwrite = event $tpda_event
66     accept condition = ${if eq {tcp} {${listextract{1}{$tpda_event}}}}
67            acl = ev_tcp
68     accept condition = ${if eq {smtp} {${listextract{1}{$tpda_event}}}}
69            acl = ev_smtp
70     accept condition = ${if eq {msg} {${listextract{1}{$tpda_event}}}}
71            acl = ev_msg $tpda_event $acl_arg2
72
73
74 # ----- Routers -----
75
76 begin routers
77
78 dump_bounces:
79   driver = redirect
80   senders = :
81   data = :blackhole:
82
83 others:
84   driver = manualroute
85   route_list = * 127.0.0.1 byname
86   self = send
87   transport = smtp
88   no_more
89
90
91 # ----- Transports -----
92
93 begin transports
94
95 smtp:
96   driver = smtp
97   port = PORT_S
98   command_timeout = 1s
99   final_timeout = 1s
100   tpda_event_action =   ${acl {logger} {$tpda_event} {$domain} }
101
102 # End