Save/restore $acl_arg1 ... across acl calls, making them local variables.
[users/heiko/exim.git] / test / confs / 0139
1 # Exim test configuration 0139
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 domainlist local_domains = exim.test.ex
14 trusted_users = CALLER
15
16 acl_smtp_helo = check_helo
17 acl_smtp_rcpt = check_recipient
18 acl_smtp_mail = check_mail
19 acl_smtp_vrfy = check_vrfy
20
21 # ------ ACL ------
22
23 begin acl
24
25 check_helo:
26   warn    dnslists = rbl2.test.ex!=127.0.0.3 : rbl3.test.ex=127.0.0.3
27   accept
28
29 check_vrfy:
30   warn    dnslists = rbl.test.ex=127.0.0.1
31   warn    dnslists = rbl.test.ex!=127.0.0.1
32   warn    dnslists = rbl.test.ex!=127.0.0.3
33   warn    dnslists = rbl.test.ex==127.0.0.1
34   warn    dnslists = rbl.test.ex==127.0.0.1,127.0.0.2
35   warn    dnslists = rbl.test.ex!==127.0.0.1
36   warn    dnslists = rbl.test.ex!==127.0.0.3
37   warn    dnslists = rbl.test.ex!==127.0.0.1,127.0.0.2
38   accept
39
40 check_mail:
41   warn    dnslists = rbl4.test.ex&0.0.0.6
42   warn    dnslists = rbl4.test.ex&127.0.0.3
43   warn    dnslists = rbl4.test.ex!&0.0.0.7
44           add_header = DNSlist: $dnslist_domain $dnslist_text $dnslist_matched
45   warn    dnslists = rbl5.test.ex,rbl4.test.ex=127.0.0.128
46           add_header = DNSlist: $dnslist_domain $dnslist_text $dnslist_matched
47   accept
48
49 check_recipient:
50   warn    message = X-Warn: host is listed in $dnslist_domain but not =127.0.0.3\
51                     ${if def:dnslist_text{\n  $dnslist_text}}
52           dnslists = rbl3.test.ex!=127.0.0.3
53   deny    message = host is listed in $dnslist_domain with value 127.0.0.3\
54                     ${if def:dnslist_text{\n$dnslist_text}}
55           dnslists = rbl3.test.ex=127.0.0.3
56   require verify = sender
57   deny    message = unrouteable address
58          !verify = recipient
59   accept  domains = +local_domains
60   deny    message = relay not permitted
61
62
63 # ----- Routers -----
64
65 begin routers
66
67 system_aliases:
68   driver = redirect
69   allow_defer
70   data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}}
71   qualify_preserve_domain
72   retry_use_local_part
73
74 localuser:
75   driver = accept
76   local_parts = userx
77   transport = local_delivery
78
79
80 # ----- Transports -----
81
82 begin transports
83
84 local_delivery:
85   driver = appendfile
86   delivery_date_add
87   envelope_to_add
88   file = DIR/test-mail/$local_part
89   return_path_add
90   user = CALLER
91
92 file:
93   driver = appendfile
94   user = CALLER
95
96 # End