Fix CVE-2016-1531
[exim.git] / test / confs / 0502
1 # Exim test configuration 0502
2
3 LAST=accept message = Your message here
4
5 exim_path = EXIM_PATH
6 keep_environment =
7 host_lookup_order = bydns
8 primary_hostname = myhost.test.ex
9 rfc1413_query_timeout = 0s
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
18 queue_only
19
20 acl_smtp_data = check_data
21 acl_smtp_mail = check_mail
22 acl_smtp_quit = check_quit
23 acl_smtp_rcpt = check_rcpt
24
25 # ------ ACLs ------
26
27 begin acl
28
29 check_data:
30   warn  set acl_c0 = ${eval:$acl_c0+1}
31         set acl_c3 = ${eval:$acl_c3+$acl_m0}
32   accept
33
34 check_mail:
35   warn  set acl_c1 = ${eval:$acl_c1+1}
36   accept
37
38 check_quit:
39   warn     logwrite = Messages received: $acl_c1
40            logwrite = Messages accepted: $acl_c0
41            logwrite = Recipients:        $acl_c2
42            logwrite = Accepted:          $acl_c3
43   LAST
44
45 check_rcpt:
46   warn  set acl_c2 = ${eval:$acl_c2+1}
47         set acl_m0 = ${eval:$acl_m0+1}
48   accept
49
50 # End