blob: effc845a52db89acb5527390ebbcfa449425406b (
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
93
94
95
96
97
98
99
|
# Exim test configuration 4620
.include DIR/aux-var/std_conf_prefix
SRS_SECRET = mysecret
# ----- Main settings -----
acl_smtp_rcpt = accept
domainlist local_domains = test.ex
domainlist remotesite_domains = remote.ex
log_selector = +all_parents +received_recipients +return_path_on_delivery
queue_only
# ----- Routers -----
begin routers
.ifdef CONTROL
remote_bouncer:
driver = redirect
condition = ${if eq {$sender_host_address}{127.0.0.1}}
data = :fail: account disabled
allow_fail
bounce_return:
driver = manualroute
domains = +local_domains
senders = :
route_list = test.ex 127.0.0.1::PORT_S
self = send
transport = to_external
.endif
external:
driver = manualroute
domains = !+local_domains
route_list = remote.ex 127.0.0.1::PORT_S
self = send
transport = ${if eq {$local_part@$domain} {$original_local_part@$original_domain} \
{to_external} {forwarded_external}}
.ifndef CONTROL
inbound_srs:
driver = redirect
senders = :
domains = +local_domains
# detect inbound bounces which are SRS'd, and decode them
condition = ${if inbound_srs {$local_part} {SRS_SECRET}}
data = $srs_recipient
inbound_srs_failure:
driver = redirect
senders = :
domains = +local_domains
# detect inbound bounces which look SRS'd but are invalid
condition = ${if inbound_srs {$local_part} {}}
allow_fail
data = :fail: Invalid SRS recipient address
.endif
local_redirect:
driver = redirect
local_parts = redirect
data = remote_user@remote.ex
local:
driver = accept
transport = appendfile
# ----- Transports -----
begin transports
to_external:
driver = smtp
forwarded_external:
driver = smtp
max_rcpt = 1
return_path = ${srs_encode {SRS_SECRET} {$return_path} {$original_domain}}
appendfile:
driver = appendfile
file = DIR/test-mail/$local_part
create_file = DIR/test-mail
user = CALLER
# ----- Retry -----
begin retry
* * F,5d,1d
# End
|