Testsuite: nail testcase to ipv4 to avoid output difference in non-6 build
[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 disable_ipv6
15
16 acl_smtp_rcpt = check_rcpt
17 acl_not_smtp = check_sndr
18 queue_only
19
20 # - ACL --
21 begin acl
22
23 check_rcpt:
24         # Do not care about result, looking at debug output
25         # expect an original lookup, a cached lookup avoidance
26         # then a TTL-required repeat lookup
27   warn  dnslists =      rbl.test.ex/V4NET.11.12.14
28         dnslists =      rbl.test.ex/V4NET.11.12.14
29         delay =         4s
30         dnslists =      rbl.test.ex/V4NET.11.12.14
31   accept
32
33 check_sndr:
34         # Do not care about result, looking at debug output
35         # expect an original lookup, a cached lookup avoidance
36         # then a TTL-required repeat lookup
37   warn  sender_domains = dnsdb;a=$sender_address_domain
38         sender_domains = dnsdb;a=$sender_address_domain
39         delay =         4s
40         sender_domains = dnsdb;a=$sender_address_domain
41   accept
42
43
44 # ----- Routers -----
45
46 begin routers
47
48 r0:
49   driver = accept
50   senders = a@shorthost.test.ex
51   transport = remote_delivery
52
53 r1:
54   driver = accept
55   domains = dnsdb;$domain
56   local_parts = dnsdb;$local_part
57   retry_use_local_part
58   transport = local_delivery
59
60 r2:
61   driver = accept
62   domains = dnsdb;$domain
63   retry_use_local_part
64   senders = dnsdb;A=${domain:$sender_address}
65   transport = local_delivery
66
67
68 # ----- Transports -----
69
70 begin transports
71
72 local_delivery:
73   driver = appendfile
74   file = DIR/test-mail/$local_part
75   user = CALLER
76
77 remote_delivery:
78   driver = smtp
79   hosts = 127.0.0.1
80   allow_localhost
81   port = PORT_D
82
83 # ----- Retry -----
84
85
86 begin retry
87
88 * * F,5d,10s
89
90
91 # End