summaryrefslogtreecommitdiff
path: root/test/confs/0618
blob: db4bd300295537205b43f072d5b5554e4afc9fad (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
# Exim test configuration 0618

SERVER =

.include DIR/aux-var/std_conf_prefix

primary_hostname = myhost.test.ex

# ----- Main settings -----

.ifdef OPT
dsn_advertise_hosts = *
.endif
delay_warning = 3s : 24h

accept_8bitmime = false
pipelining_advertise_hosts = :

trusted_users = CALLER
acl_smtp_rcpt = rcpt

log_selector = +received_recipients
queue_only
queue_run_in_order


event_action = ${acl {ev_log}}

#

begin acl

ev_log:
  accept logwrite = event $event_name

rcpt:
  accept hosts =	HOSTIPV4

  deny	local_parts =	rmt_reject
  defer	local_parts =	rmt_defer
  accept

# ----- Routers -----

begin routers

r_dump:
  driver =	redirect
  domains =	dump.ex
  data =	:blackhole:

r1:
  driver =	accept
  condition =	${if eq {127.0.0.1}{$sender_host_address}}
  transport =	tofile

r2:
  driver =	manualroute
  local_parts =	^rmt_.*
  route_list =	* 127.0.0.1::PORT_D
  self =	send
  transport =	smtp

r3:
  driver =	manualroute
  local_parts =	deferred
  route_list =	* 127.0.0.1::PORT_S
  self =	send
  transport =	bad_tpt

# ----- Transports -----

begin transports

smtp:
  driver =	smtp
  event_action = ${acl {ev_log}}

bad_tpt:
  driver =	smtp
  connect_timeout = 1s
  event_action = ${acl {ev_log}}

tofile:
  driver = appendfile
  file = DIR/test-mail/$local_part
  user = CALLER
  event_action = ${acl {ev_log}}

begin retry

*	*	F,1m,3s
# End