Testsuite - Squashed commit of the following:
[exim.git] / test / confs / 0307
1 # Exim test configuration 356
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 primary_hostname = myhost.test.ex
6 rfc1413_query_timeout = 0s
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/%slog
9 gecos_pattern = ""
10 gecos_name = CALLER_NAME
11
12 # ----- Main settings -----
13
14 acl_smtp_rcpt = accept
15 trusted_users = CALLER
16
17
18 # ------ Routers ------
19
20 begin routers
21
22 r1:
23   driver = redirect
24   domains = lists.test.ex
25   local_part_suffix = -request
26   local_part_suffix_optional
27   senders = ${if eq {$local_part_suffix}{-request}{*}\
28             {\
29             ${if exists {DIR/aux-fixed/TESTNUM/$local_part}\
30              {lsearch;DIR/aux-fixed/TESTNUM/$local_part}{*}}\
31             }}
32   file = DIR/aux-fixed/TESTNUM/$local_part$local_part_suffix
33   forbid_pipe
34   forbid_file
35   one_time
36   skip_syntax_errors
37   errors_to = $local_part-request@lists.test.ex
38   syntax_errors_to = $local_part-request@lists.test.ex
39
40 r2:
41   driver = redirect
42   domains = lists.test.ex
43   allow_fail
44   data = :fail: $local_part@lists.test.ex is a closed mailing list
45
46 r3:
47   driver = accept
48   senders = :
49   transport = t1
50
51 r4:
52   driver = accept
53   transport = t2
54
55
56 # ------ Transports ------
57
58 begin transports
59
60 t1:
61   driver = appendfile
62   file = DIR/test-mail/$local_part
63   user = CALLER
64
65 t2:
66   driver = appendfile
67   file = /dev/null
68   user = CALLER
69
70 # End