Events: Fix crash on control=debug from transport event acl. Bug 1540
[exim.git] / test / confs / 0212
1 # Exim test configuration 0212
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 spool_directory = DIR/spool
6 log_file_path = DIR/spool/log/%slog
7 gecos_pattern = ""
8 gecos_name = CALLER_NAME
9
10 # ----- Main settings -----
11
12 domainlist local_domains = test.ex
13 domainlist relay_domains = test.ex
14
15 acl_smtp_rcpt = check_recipient
16 acl_smtp_vrfy = check_vrfy
17
18 qualify_domain = test.ex
19 smtp_accept_max_nonmail = 1000
20 trusted_users = CALLER
21
22 # ----- ACL -----
23
24 begin acl
25
26 check_recipient:
27   accept  hosts = :
28   deny    message = unrouteable address
29          !verify = recipient
30   accept  domains = +local_domains
31   accept  domains = +relay_domains
32   deny    message = relay not permitted
33
34 check_vrfy:
35   accept
36
37
38 # ----- Routers -----
39
40 begin routers
41
42 fail_remote_domains:
43   driver = redirect
44   domains = ! +local_domains
45   allow_fail
46   data = :fail: unrouteable mail domain "$domain"
47
48 smartuser:
49   driver = redirect
50   allow_defer
51   allow_fail
52   data = ${if match{$local_part}{^smartuser\\.(.*)}{$1}fail}
53   retry_use_local_part
54
55 alias:
56   driver = redirect
57   allow_defer
58   allow_fail
59   data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}}
60   retry_use_local_part
61
62 forward:
63   driver = redirect
64   no_check_local_user
65   file = DIR/aux-fixed/TESTNUM.$local_part.forward
66   retry_use_local_part
67
68 all:
69   driver = accept
70   local_parts = userx
71   transport = local_delivery
72
73
74 # ----- Transports -----
75
76 begin transports
77
78 local_delivery:
79   driver = appendfile
80   file = DIR/test-mail/$local_part
81   return_path_add
82   user = CALLER
83
84
85 # ----- Retry -----
86
87
88 begin retry
89
90 * * F,5d,8h
91
92
93 # End