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