Use common routine for building tagstring for dns-fail cache
[exim.git] / test / confs / 0026
1 # Exim test configuration 0026
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
11 acl_smtp_rcpt = accept
12 acl_smtp_data = acl_data
13
14 trusted_users = CALLER
15
16 # ------ ACLs ------
17
18 begin acl
19
20 acl_data:
21 deny log_message = body contains trigger
22 condition = ${if match{$message_body}{trigger}{yes}{no}}
23 warn logwrite = \$h_from: '$h_from:'
24 require verify = header_syntax
25 warn message = X-warning: this is a test warning
26 accept senders = ! :
27 accept verify = header_sender
28
29
30 # ------ Routers ------
31
32 begin routers
33
34 r1:
35 driver = dnslookup
36 domains = ! +local_domains
37 transport = dev_null
38 no_more
39
40 r2:
41 driver = accept
42 local_parts = userx : postmaster
43 transport = local_delivery
44
45
46 # ------ Transports ------
47
48 begin transports
49
50 dev_null:
51 driver = appendfile
52 file = /dev/null
53 user = CALLER
54
55 local_delivery:
56 driver = appendfile
57 file = DIR/test-mail/$local_part
58 user = CALLER
59
60 # End