Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 3408 |
2 | ||
d4dc049f JH |
3 | .include DIR/aux-var/std_conf_prefix |
4 | ||
afda344b PH |
5 | |
6 | # ----- Main settings ----- | |
7 | ||
8 | qualify_domain = exim.test.ex | |
9 | acl_smtp_rcpt = check_recipient | |
10 | domainlist local_domains = exim.test.ex | |
11 | ||
12 | ||
13 | # ----- ACL ----- | |
14 | ||
15 | begin acl | |
16 | ||
17 | check_recipient: | |
18 | accept hosts = : | |
19 | accept recipients = postmaster@exim.test.ex | |
20 | deny message = host is listed in $dnslist_domain | |
21 | !authenticated = * | |
22 | dnslists = rbl.test.ex | |
23 | require verify = sender | |
24 | deny message = unrouteable address | |
25 | !verify = recipient | |
26 | accept domains = +local_domains | |
27 | deny message = relay not permitted | |
28 | ||
29 | ||
30 | # ----- Authentication ----- | |
31 | ||
32 | begin authenticators | |
33 | ||
34 | plain: | |
35 | driver = plaintext | |
36 | public_name = PLAIN | |
37 | server_condition = "\ | |
38 | ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" | |
39 | server_set_id = $2 | |
40 | ||
41 | ||
42 | # ----- Routers ----- | |
43 | ||
44 | begin routers | |
45 | ||
46 | system_aliases: | |
47 | driver = redirect | |
48 | allow_defer | |
49 | data = ${lookup{$local_part}lsearch{DIR/aux-var/TESTNUM.aliases}} | |
50 | retry_use_local_part | |
51 | ||
52 | localuser: | |
53 | driver = accept | |
54 | check_local_user | |
55 | transport = local_delivery | |
56 | ||
57 | list: | |
58 | driver = accept | |
59 | local_parts = userx | |
60 | transport = local_delivery | |
61 | ||
62 | ||
63 | # ----- Transports ----- | |
64 | ||
65 | begin transports | |
66 | ||
67 | local_delivery: | |
68 | driver = appendfile | |
69 | delivery_date_add | |
70 | envelope_to_add | |
71 | file = DIR/test-mail/$local_part | |
72 | return_path_add | |
73 | ||
74 | # End |