Support wire-format spoolfiles
[exim.git] / test / confs / 0024
1 # Exim test configuration 0024
2
3 .include DIR/aux-var/std_conf_prefix
4
5 primary_hostname = myhost.test.ex
6
7 # ----- Main settings -----
8
9 domainlist local_domains = test.ex
10 domainlist relay_domains = ten-1.test.ex
11
12 hostlist relay_hosts = V4NET.255.255.0/24
13
14 trusted_users = CALLER
15
16 acl_smtp_rcpt = acl_rcpt
17
18 # ------ ACLs ------
19
20 begin acl
21
22 acl_rcpt:
23 accept hosts = :
24
25 accept domains = +local_domains
26 local_parts = postmaster
27
28 require verify = sender
29
30 deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\n$dnslist_text
31 dnslists = rbl.test.ex
32
33 warn message = X-Warning: $sender_host_address is in a black list at $dnslist_domain ($dnslist_value)
34 log_message = found in $dnslist_domain
35 dnslists = rbl2.test.ex
36
37 accept domains = +local_domains
38 endpass
39 verify = recipient
40
41 require verify = recipient
42
43 accept domains = +relay_domains
44
45 accept hosts = 127.0.0.1 : +relay_hosts
46
47 accept authenticated = *
48
49 deny message = relay not permitted
50
51
52 # ------ Routers ------
53
54 begin routers
55
56 r1:
57 driver = dnslookup
58 domains = ! +local_domains
59 transport = dev_null
60 no_more
61
62 r2:
63 driver = accept
64 local_parts = userx : postmaster
65 transport = local_delivery
66 cannot_route_message = unknown user
67
68
69 # ------ Transports ------
70
71 begin transports
72
73 dev_null:
74 driver = appendfile
75 file = /dev/null
76 user = CALLER
77
78 local_delivery:
79 driver = appendfile
80 file = DIR/test-mail/$local_part
81 user = CALLER
82
83 # End