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