summaryrefslogtreecommitdiff
path: root/test/confs/0620
blob: 15e31f1c505f022fd8ad6008b775e45f5767153f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Exim test configuration 0166

.include DIR/aux-var/std_conf_prefix


# ----- Main settings -----

domainlist local_domains = test.ex
qualify_domain = test.ex

acl_not_smtp = not_smtp

begin acl

not_smtp:
  accept log_message = rcpt <$recipients> l <$local_part>

# ----- Routers -----

begin routers

alias:
  driver =	redirect
  debug_print = DEBUG: $r_r1 $r_r2
  data =	b
  set =	<;	r_r1 = <$local_part> aaa:bbb bar=baz
  set =		r_local = check
  errors_to =	bad_$r_local

user:
  driver =	accept
  debug_print = DEBUG: $r_r1 $r_r2
  set =		r_r1 = $local_part
  set =	<;	r_r2 = $local_part 2a00:1940:100::ff:0:1 foo=bar
  transport =	local_delivery


# ----- Transports -----

begin transports

local_delivery:
  driver = appendfile
  envelope_to_add
  file = DIR/test-mail/$local_part
  user = CALLER
  debug_print = DEBUG: $r_r1 $r_r2
  headers_add =	X-r1: <$r_r1>\nX-r2: <$r_r2>


# End