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