DNS: time-limit cached returns, using TTL. Bug 1395
[users/jgh/exim.git] / test / confs / 2201
1 # Exim test configuration 2201
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 primary_hostname = myhost.test.ex
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/%slog
8 gecos_pattern = ""
9 gecos_name = CALLER_NAME
10
11 # ----- Main settings -----
12
13 trusted_users = CALLER
14
15 acl_smtp_rcpt = check_rcpt
16 acl_not_smtp = check_sndr
17 queue_only
18
19 # - ACL --
20 begin acl
21
22 check_rcpt:
23         # Do not care about result, looking at debug output
24         # expect an original lookup, a cached lookup avoidance
25         # then a TTL-required repeat lookup
26   warn  dnslists =      rbl.test.ex/V4NET.11.12.14
27         dnslists =      rbl.test.ex/V4NET.11.12.14
28         delay =         4s
29         dnslists =      rbl.test.ex/V4NET.11.12.14
30   accept
31
32 check_sndr:
33         # Do not care about result, looking at debug output
34         # expect an original lookup, a cached lookup avoidance
35         # then a TTL-required repeat lookup
36   warn  sender_domains = dnsdb;a=$sender_address_domain
37         sender_domains = dnsdb;a=$sender_address_domain
38         delay =         4s
39         sender_domains = dnsdb;a=$sender_address_domain
40   accept
41
42
43 # ----- Routers -----
44
45 begin routers
46
47 r0:
48   driver = accept
49   senders = a@shorthost.test.ex
50   transport = remote_delivery
51
52 r1:
53   driver = accept
54   domains = dnsdb;$domain
55   local_parts = dnsdb;$local_part
56   retry_use_local_part
57   transport = local_delivery
58
59 r2:
60   driver = accept
61   domains = dnsdb;$domain
62   retry_use_local_part
63   senders = dnsdb;A=${domain:$sender_address}
64   transport = local_delivery
65
66
67 # ----- Transports -----
68
69 begin transports
70
71 local_delivery:
72   driver = appendfile
73   file = DIR/test-mail/$local_part
74   user = CALLER
75
76 remote_delivery:
77   driver = smtp
78   hosts = 127.0.0.1
79   allow_localhost
80   port = PORT_D
81
82 # ----- Retry -----
83
84
85 begin retry
86
87 * * F,5d,10s
88
89
90 # End