Add recognition of SMTP error codes in bespoke messages.
[users/jgh/exim.git] / test / confs / 0139
1 # Exim test configuration 0139
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 rfc1413_query_timeout = 0s
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/%slog
8 gecos_pattern = ""
9 gecos_name = CALLER_NAME
10
11 # ----- Main settings -----
12
13 domainlist local_domains = exim.test.ex
14
15 acl_smtp_rcpt = check_recipient
16 acl_smtp_mail = check_mail
17
18 # ------ ACL ------
19
20 begin acl
21
22 check_mail:
23   warn    dnslists = rbl4.test.ex&0.0.0.6
24   warn    dnslists = rbl4.test.ex&127.0.0.3
25   warn    dnslists = rbl4.test.ex!&0.0.0.7
26   accept
27
28 check_recipient:
29   warn    message = X-Warn: host is listed in $dnslist_domain but not =127.0.0.3\
30                     ${if def:dnslist_text{\n  $dnslist_text}}
31           dnslists = rbl3.test.ex!=127.0.0.3
32   deny    message = host is listed in $dnslist_domain with value 127.0.0.3\
33                     ${if def:dnslist_text{\n$dnslist_text}}
34           dnslists = rbl3.test.ex=127.0.0.3
35   require verify = sender
36   deny    message = unrouteable address
37          !verify = recipient
38   accept  domains = +local_domains
39   deny    message = relay not permitted
40
41
42 # ----- Routers -----
43
44 begin routers
45
46 system_aliases:
47   driver = redirect
48   allow_defer
49   data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}}
50   qualify_preserve_domain
51   retry_use_local_part
52
53 localuser:
54   driver = accept
55   local_parts = userx
56   transport = local_delivery
57
58
59 # ----- Transports -----
60
61 begin transports
62
63 local_delivery:
64   driver = appendfile
65   delivery_date_add
66   envelope_to_add
67   file = DIR/test-mail/$local_part
68   return_path_add
69   user = CALLER
70
71 file:
72   driver = appendfile
73   user = CALLER
74
75 # End