Add variables for wildcard portion of local-part affix. Bug 281
[exim.git] / test / confs / 0015
CommitLineData
afda344b
PH
1# Exim test configuration 0015
2
d4dc049f
JH
3.include DIR/aux-var/std_conf_prefix
4
afda344b
PH
5
6# ----- Main settings -----
7
8qualify_domain = test.ex
9
10
11# ----- Routers -----
12
13begin routers
14
15convert_to_real_name:
16 driver = redirect
17 allow_defer
18 data = "\
19 $local_part_prefix${lookup{$local_part}\
20 lsearch{DIR/aux-fixed/0015.realnames}{$value}fail}@$domain"
21 local_part_prefix = *+
22 local_part_prefix_optional
23 retry_use_local_part
24
25#system_aliases:
26# driver = redirect
27# allow_defer
28# data = ${lookup{$local_part}lsearch{DIR/aux-fixed/0015.aliases}}
29# retry_use_local_part
30
31userforward:
32 driver = redirect
33 allow_filter
34 local_parts = userx
35 user = CALLER
0d2e392e 36 file = DIR/aux-fixed/0015.filter.${bless:$local_part}
afda344b
PH
37 local_part_prefix = *+
38 local_part_prefix_optional
39 pipe_transport = address_pipe
40 reply_transport = address_reply
41
42localuser_b:
43 driver = accept
44 local_parts = userx : CALLER
45 local_part_prefix = B+
46 transport = local_delivery_b
47
48localuser_s:
49 driver = accept
50 local_part_prefix = S+
51 transport = delivery_s
52
53localuser_sb:
54 driver = accept
55 local_parts = userx : CALLER
56 local_part_prefix = *+
57 local_part_prefix_optional
58 local_part_suffix = -B
59 transport = local_delivery_b
60
61localuser_ss:
62 driver = accept
63 local_part_suffix = -S
64 transport = delivery_s
65
66localuser:
67 driver = accept
68 local_parts = userx : CALLER
69 local_part_prefix = *+
70 local_part_prefix_optional
71 transport = local_delivery
72
73
74# ----- Transports -----
75
76begin transports
77
78local_delivery:
79 driver = appendfile
80 user = CALLER
81 delivery_date_add
82 envelope_to_add
0d2e392e 83 file = DIR/test-mail/${bless:$local_part}
afda344b
PH
84 return_path_add
85 headers_add = X-local_part: $local_part\n\
759502e5
JH
86 X-local_part_prefix: $local_part_prefix\n\
87 X-local_part_prefix_v: $local_part_prefix_v
afda344b
PH
88
89local_delivery_b:
90 driver = appendfile
91 user = CALLER
92 delivery_date_add
93 envelope_to_add
0d2e392e 94 file = DIR/test-mail/${bless:$local_part}
afda344b
PH
95 return_path_add
96 use_bsmtp
97 headers_add = X-local_part: $local_part\n\
759502e5
JH
98 X-local_part_prefix: $local_part_prefix\n\
99 X-local_part_prefix_v: $local_part_prefix_v
afda344b
PH
100
101delivery_s:
102 driver = smtp
103 hosts = 127.0.0.1
104 port = PORT_S
277b9979 105 hosts_try_fastopen = :
afda344b
PH
106 allow_localhost
107
108address_reply:
109 driver = autoreply
110
111address_pipe:
112 driver = pipe
113
114# End