Commit | Line | Data |
---|---|---|
617d3932 JH |
1 | # Exim test configuration 4560 |
2 | ||
3 | SERVER= | |
f48946eb JH |
4 | VALUE= |
5 | INSERT= | |
617d3932 JH |
6 | |
7 | .include DIR/aux-var/std_conf_prefix | |
8 | ||
9 | primary_hostname = test.ex | |
10 | ||
11 | # ----- Main settings ----- | |
12 | ||
13 | acl_smtp_rcpt = accept | |
14 | acl_smtp_data = check_data | |
15 | ||
16 | log_selector = +received_recipients +dkim_verbose | |
17 | queue_only | |
1415d1a6 | 18 | queue_run_in_order |
617d3932 JH |
19 | |
20 | # ----- ACL ----- | |
21 | begin acl | |
22 | ||
23 | check_data: | |
f48946eb JH |
24 | warn !verify = arc VALUE |
25 | INSERT | |
26 | ||
ea7b1f16 JH |
27 | warn logwrite = arc_state: <$arc_state> |
28 | logwrite = domains: <$arc_domains> | |
29 | logwrite = arc_oldest_pass <$arc_oldest_pass> | |
ea7b1f16 | 30 | logwrite = reason: <$arc_state_reason> |
bce15b62 JH |
31 | logwrite = lh_A-R: <$lh_Authentication-Results:> |
32 | logwrite = lh-ams: <$lh_ARC-Authentication-Results:> | |
33 | # logwrite = oldest-p-ams: <${listextract {$arc_oldest_pass} {$lh_ARC-Authentication-Results:}}> | |
34 | logwrite = oldest-p-ams: <${reduce {$lh_ARC-Authentication-Results:} \ | |
35 | {} \ | |
36 | {${if = {$arc_oldest_pass} \ | |
37 | {${extract {i}{${extract {1}{;}{$item}}}}} \ | |
38 | {$item} {$value}}} \ | |
39 | }> | |
93c931f8 | 40 | |
617d3932 JH |
41 | .ifdef OPTION |
42 | accept | |
43 | .else | |
44 | accept add_header = :at_start:${authresults {$primary_hostname}} | |
45 | .endif | |
46 | ||
47 | # ----- Routers ----- | |
48 | ||
49 | begin routers | |
50 | ||
51 | d1: | |
52 | driver = accept | |
53 | local_parts = ^a | |
54 | transport = tfile | |
55 | ||
56 | r2: | |
57 | driver = redirect | |
58 | local_parts = ^m | |
59 | data = ${substr_1:$local_part}@$domain | |
60 | redirect_router = mlist | |
61 | ||
62 | redir: | |
63 | driver = redirect | |
64 | data = ${substr_1:$local_part}@$domain | |
65 | redirect_router = fwd | |
66 | ||
67 | fwd: | |
68 | driver = accept | |
69 | transport = tsmtp | |
70 | ||
71 | mlist: | |
72 | driver = accept | |
73 | transport = tmlist | |
74 | ||
75 | # ----- Transports ----- | |
76 | ||
77 | begin transports | |
78 | ||
79 | tfile: | |
80 | driver = appendfile | |
0d2e392e | 81 | file = DIR/test-mail/${bless:$local_part} |
617d3932 JH |
82 | user = CALLER |
83 | ||
84 | tsmtp: | |
85 | driver = smtp | |
798a7ffe | 86 | hosts = 127.0.0.1 |
617d3932 JH |
87 | port = PORT_D |
88 | allow_localhost | |
89 | .ifndef OPTION | |
97e939df JH |
90 | .ifdef BAD |
91 | arc_sign = $primary_hostname : sel : MISSING_KEY | |
92 | .else | |
617d3932 JH |
93 | arc_sign = $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private |
94 | .endif | |
97e939df | 95 | .endif |
617d3932 JH |
96 | |
97 | tmlist: | |
98 | driver = smtp | |
798a7ffe | 99 | hosts = 127.0.0.1 |
617d3932 JH |
100 | port = PORT_D |
101 | allow_localhost | |
102 | transport_filter = /bin/cat - DIR/aux-fixed/TESTNUM.mlistfooter | |
103 | .ifndef OPTION | |
104 | arc_sign = $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private | |
105 | .endif | |
106 | ||
107 | # End |