Testcase 0601: move udpsend action from connect to rcpt ACL
[users/jgh/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 host_lookup_order = bydns
7 primary_hostname = myhost.test.ex
8 rfc1413_query_timeout = 0s
9 spool_directory = DIR/spool
10 log_file_path = DIR/spool/log/%slog
11 gecos_pattern = ""
12 gecos_name = CALLER_NAME
13
14 # ----- Main settings -----
15
16 domainlist local_domains = test.ex
17 queue_only
18
19 acl_smtp_data = check_data
20 acl_smtp_mail = check_mail
21 acl_smtp_quit = check_quit
22 acl_smtp_rcpt = check_rcpt
23
24 # ------ ACLs ------
25
26 begin acl
27
28 check_data:
29   warn  set acl_c0 = ${eval:$acl_c0+1}
30         set acl_c3 = ${eval:$acl_c3+$acl_m0}
31   accept
32
33 check_mail:
34   warn  set acl_c1 = ${eval:$acl_c1+1}
35   accept
36
37 check_quit:
38   warn     logwrite = Messages received: $acl_c1
39            logwrite = Messages accepted: $acl_c0
40            logwrite = Recipients:        $acl_c2
41            logwrite = Accepted:          $acl_c3
42   LAST
43
44 check_rcpt:
45   warn  set acl_c2 = ${eval:$acl_c2+1}
46         set acl_m0 = ${eval:$acl_m0+1}
47   accept
48
49 # End