Use common routine for building tagstring for dns-fail cache
[exim.git] / test / confs / 0024
CommitLineData
afda344b
PH
1# Exim test configuration 0024
2
d4dc049f
JH
3.include DIR/aux-var/std_conf_prefix
4
afda344b 5primary_hostname = myhost.test.ex
afda344b
PH
6
7# ----- Main settings -----
8
9domainlist local_domains = test.ex
10domainlist relay_domains = ten-1.test.ex
11
12hostlist relay_hosts = V4NET.255.255.0/24
13
14trusted_users = CALLER
15
16acl_smtp_rcpt = acl_rcpt
17
18# ------ ACLs ------
19
20begin acl
21
22acl_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
54begin routers
55
56r1:
57 driver = dnslookup
58 domains = ! +local_domains
59 transport = dev_null
60 no_more
61
62r2:
63 driver = accept
64 local_parts = userx : postmaster
65 transport = local_delivery
66 cannot_route_message = unknown user
67
68
69# ------ Transports ------
70
71begin transports
72
73dev_null:
74 driver = appendfile
75 file = /dev/null
76 user = CALLER
77
78local_delivery:
79 driver = appendfile
80 file = DIR/test-mail/$local_part
81 user = CALLER
82
83# End