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

.include DIR/aux-var/std_conf_prefix

primary_hostname = myhost.test.ex

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

acl_smtp_rcpt = chk_rcpt
log_selector = +millisec

# --- ACL ---

begin acl

chk_rcpt:
  deny		!verify = recipient/quota=cachepos=20s,cacheneg=100s
		logwrite = where='$recipient_verify_failure' msg='$acl_verify_message'
  accept

loggit:
  accept	logwrite = $acl_arg1 was called for $local_part@$domain
		message = /

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

begin routers

localuser:
  driver =	accept
  local_parts =	!route_fail
  transport =	appendfile
  # set address_data purely to get logging of use of the router
  address_data = ${acl {loggit}{router   }}

failrouter:
  driver =	accept
  condition =	${if eq {${acl {loggit}{router   }}}{} {no}{no}}
  transport =	appendfile

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

begin transports

appendfile:
  driver =	appendfile
  file =	DIR/test-mail/themailfile
  quota =	1k
  user =	CALLER
  # set homedir purely to get logging of use of the transport
  home_directory = ${acl {loggit}{transport}}

# ----- Retry -----

begin retry

* * F,5d,1d


# End