Add variables for wildcard portion of local-part affix. Bug 281
[exim.git] / test / confs / 1002
1 # Exim test configuration 1002
2
3 .include DIR/aux-var/std_conf_prefix
4
5 primary_hostname = myhost.test.ex
6
7 # ----- Main settings -----
8
9 acl_smtp_rcpt = acl_rcpt_$local_part
10 allow_domain_literals
11 hosts_treat_as_local = other1.test.ex
12
13
14 # ------ ACLs ------
15
16 begin acl
17
18 acl_rcpt_1:
19 require message = domain doesn't match @ or @[]
20 domains = @ : @[]
21 accept
22
23 acl_rcpt_2:
24 require message = domain doesn't match @mx_any
25 domains = @mx_any
26 accept
27
28 acl_rcpt_3:
29 require message = domain doesn't match @mx_primary
30 domains = @mx_primary
31 accept
32
33 acl_rcpt_4:
34 require message = domain doesn't match @mx_secondary
35 domains = @mx_secondary
36 accept
37
38 acl_rcpt_5:
39 require message = host doesn't match @ or @[]
40 hosts = @ : @[]
41 accept
42
43 acl_rcpt_6:
44 require message = domain doesn't match @mx_any/ignore=<;127.0.0.1;::1
45 domains = <+ @mx_any/ignore=<;127.0.0.1;::1
46 accept
47
48
49 # ------ Routers ------
50
51 begin routers
52
53 r1:
54 driver = dnslookup
55 domains = ! +local_domains
56 transport = dev_null
57 no_more
58
59 r2:
60 driver = accept
61 local_parts = CALLER : postmaster
62 transport = local_delivery
63
64
65 # ------ Transports ------
66
67 begin transports
68
69 dev_null:
70 driver = appendfile
71 file = /dev/null
72 user = CALLER
73
74 local_delivery:
75 driver = appendfile
76 file = DIR/test-mail/${bless:$local_part}
77 user = CALLER
78
79 # End