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