dnslists: permit use with explicit key(s) in nonsmtp ACLs. Bug 1748
[users/jgh/exim.git] / test / confs / 0571
1 # Exim test configuration 0571
2
3 LOG_SELECTOR=
4
5 exim_path = EXIM_PATH
6 host_lookup_order = bydns
7 primary_hostname = myhost.test.ex
8 spool_directory = DIR/spool
9 log_file_path = DIR/spool/log/%slog
10 gecos_pattern = ""
11 gecos_name = CALLER_NAME
12 tls_advertise_hosts =
13
14 # ----- Main settings -----
15
16 disable_ipv6 = true
17
18 addresslist ok_senders = ok@ok.ok
19
20 domainlist local_domains = test.ex : *.test.ex
21
22 qualify_domain = test.ex
23 trusted_users = CALLER
24
25 # Use first three components of from_domain to select ACL
26 acl_not_smtp =  ${if def:sender_address \
27         {acl_${sg{${tr{$sender_address_domain}{.}{_}}}{^(.*)_.*\$}{\$1}}} \
28         {accept control=queue_only}}
29
30 # ----- ACLs -----
31
32 begin acl
33
34 acl_29_29_29:
35   deny    dnslists = test.ex/$sender_address_domain
36   accept
37
38 acl_29_29_0:
39   deny    dnslists = test.ex
40   accept
41
42 # ----- Transports -----
43
44 begin transports
45
46 t1:
47   driver = appendfile
48   file = DIR/test-mail/$local_part
49   user = CALLER
50
51 t2:
52   driver = appendfile
53   file = DIR/test-mail/okbatch
54   user = CALLER
55   batch_max = 100
56   envelope_to_add
57
58 # ----- Routers -----
59
60 begin routers
61
62 r0:
63   driver = accept
64   local_parts = ^ok
65   transport = t2
66
67 r1:
68   driver = accept
69   local_parts = ^userx : ^cond-
70   transport = t1
71
72 r2:
73   driver = redirect
74   local_parts = fail
75   allow_fail
76   data = :fail: here is a fail message
77
78 # End