Commit | Line | Data |
---|---|---|
37ff4e03 | 1 | # Exim test configuration 0307 |
afda344b | 2 | |
d4dc049f JH |
3 | .include DIR/aux-var/std_conf_prefix |
4 | ||
afda344b | 5 | primary_hostname = myhost.test.ex |
afda344b PH |
6 | |
7 | # ----- Main settings ----- | |
8 | ||
9 | acl_smtp_rcpt = accept | |
10 | trusted_users = CALLER | |
11 | ||
12 | ||
13 | # ------ Routers ------ | |
14 | ||
15 | begin routers | |
16 | ||
17 | r1: | |
18 | driver = redirect | |
19 | domains = lists.test.ex | |
20 | local_part_suffix = -request | |
21 | local_part_suffix_optional | |
22 | senders = ${if eq {$local_part_suffix}{-request}{*}\ | |
23 | {\ | |
24 | ${if exists {DIR/aux-fixed/TESTNUM/$local_part}\ | |
25 | {lsearch;DIR/aux-fixed/TESTNUM/$local_part}{*}}\ | |
26 | }} | |
27 | file = DIR/aux-fixed/TESTNUM/$local_part$local_part_suffix | |
28 | forbid_pipe | |
29 | forbid_file | |
30 | one_time | |
31 | skip_syntax_errors | |
32 | errors_to = $local_part-request@lists.test.ex | |
33 | syntax_errors_to = $local_part-request@lists.test.ex | |
34 | ||
35 | r2: | |
36 | driver = redirect | |
37 | domains = lists.test.ex | |
38 | allow_fail | |
39 | data = :fail: $local_part@lists.test.ex is a closed mailing list | |
40 | ||
41 | r3: | |
42 | driver = accept | |
43 | senders = : | |
44 | transport = t1 | |
45 | ||
46 | r4: | |
47 | driver = accept | |
48 | transport = t2 | |
49 | ||
50 | ||
51 | # ------ Transports ------ | |
52 | ||
53 | begin transports | |
54 | ||
55 | t1: | |
56 | driver = appendfile | |
57 | file = DIR/test-mail/$local_part | |
58 | user = CALLER | |
59 | ||
60 | t2: | |
61 | driver = appendfile | |
62 | file = /dev/null | |
63 | user = CALLER | |
64 | ||
65 | # End |