Testsuite: more munge tweaks
[exim.git] / test / confs / 0606
1 # Exim test configuration 0606
2
3 .include DIR/aux-var/std_conf_prefix
4
5
6 # ----- Main settings -----
7
8 domainlist local_domains = test.ex
9 qualify_domain = test.ex
10
11 acl_not_smtp = not_smtp
12
13 begin acl
14
15 not_smtp:
16   accept log_message = rcpts <$recipients> local_part <$local_part>
17
18 # ----- Routers -----
19
20 begin routers
21
22 dump_bounce:
23   driver =      redirect
24   senders =     :
25   data =        :blackhole:
26
27 hide_verifies:
28   driver =      accept
29   verify_only
30
31 bad:
32   driver =      accept
33   local_parts = bad
34   set =         r_srs_domain = ${lookup mysql{wrong things
35   transport =   local_delivery
36
37 alias:
38   driver =      redirect
39   debug_print = DEBUG: $r_r1 $r_r2
40   data =        b
41                 # r_r1 checks that a variable with tainted data is ok
42                 #       that the default list-sep ":" is not used for this list
43                 #       that an '=' on the RHS is ok
44   set =         r_r1 = <$local_part> aaa:bbb bar=baz
45                 # r_local checks that a variable is immediately usable
46   set =         r_local = check
47   errors_to =   bad_$r_local
48
49 user:
50   driver =      accept
51   debug_print = DEBUG: $r_r1 $r_r2
52                 # r_r1 vs. r_r2 checks we can have multiple "set" options
53   set =         r_r1 = $local_part
54   set =         r_r2 = $local_part \
55                         2a00:1940:100::ff:0:1 \
56                         foo=bar \
57                         # check we can get a newline into content
58                         newline=initial\n\tcont \
59                         # check we can get a list-sep into content (by doubling)
60                         semicolon=initial;;cont \
61                 ; \
62                 # r_r3 checks we can have a list as arg for a "set" option
63                 r_r3 = bletch
64   transport =   local_delivery
65
66
67 # ----- Transports -----
68
69 begin transports
70
71 local_delivery:
72   driver = appendfile
73   envelope_to_add
74   file = DIR/test-mail/$local_part
75   create_file = DIR/test-mail
76   user = CALLER
77   headers_add = X-r1: <$r_r1>\nX-r2: <$r_r2>\nX-r3: <$r_r3>
78
79
80 # ----- Retry -----
81 begin retry
82 * * F,5d,10s
83
84 # End