Logging: fix receive-time crash with recipients-logging.
[exim.git] / test / confs / 0583
1 # Exim test configuration 0583
2
3 .include DIR/aux-var/std_conf_prefix
4
5 primary_hostname = myhost.test.ex
6
7 # ----- Main settings -----
8
9 acl_smtp_rcpt = chk_rcpt
10 log_selector = +millisec
11
12 # --- ACL ---
13
14 begin acl
15
16 chk_rcpt:
17   deny          !verify = recipient/quota=cachepos=20s,cacheneg=100s
18                 logwrite = where='$recipient_verify_failure' msg='$acl_verify_message'
19   accept
20
21 loggit:
22   accept        logwrite = $acl_arg1 was called for $local_part@$domain
23                 message = /
24
25 # ----- Routers -----
26
27 begin routers
28
29 localuser:
30   driver =      accept
31   local_parts = !route_fail
32   transport =   appendfile
33   # set address_data purely to get logging of use of the router
34   address_data = ${acl {loggit}{router   }}
35
36 failrouter:
37   driver =      accept
38   condition =   ${if eq {${acl {loggit}{router   }}}{} {no}{no}}
39   transport =   appendfile
40
41 # ----- Transports -----
42
43 begin transports
44
45 appendfile:
46   driver =      appendfile
47   file =        DIR/test-mail/themailfile
48   quota =       1k
49   user =        CALLER
50   # set homedir purely to get logging of use of the transport
51   home_directory = ${acl {loggit}{transport}}
52
53 # ----- Retry -----
54
55 begin retry
56
57 * * F,5d,1d
58
59
60 # End