Michael Deutschmann's patch for getting TXT from a specific list when
[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 trusted_users = CALLER
15
16 acl_smtp_rcpt = check_recipient
17 acl_smtp_mail = check_mail
18
19 # ------ ACL ------
20
21 begin acl
22
23 check_mail:
24   warn    dnslists = rbl4.test.ex&0.0.0.6
25   warn    dnslists = rbl4.test.ex&127.0.0.3
26   warn    dnslists = rbl4.test.ex!&0.0.0.7
27           add_header = DNSlist: $dnslist_domain $dnslist_text
28   warn    dnslists = rbl5.test.ex,rbl4.test.ex=127.0.0.128
29           add_header = DNSlist: $dnslist_domain $dnslist_text
30   accept
31
32 check_recipient:
33   warn    message = X-Warn: host is listed in $dnslist_domain but not =127.0.0.3\
34                     ${if def:dnslist_text{\n  $dnslist_text}}
35           dnslists = rbl3.test.ex!=127.0.0.3
36   deny    message = host is listed in $dnslist_domain with value 127.0.0.3\
37                     ${if def:dnslist_text{\n$dnslist_text}}
38           dnslists = rbl3.test.ex=127.0.0.3
39   require verify = sender
40   deny    message = unrouteable address
41          !verify = recipient
42   accept  domains = +local_domains
43   deny    message = relay not permitted
44
45
46 # ----- Routers -----
47
48 begin routers
49
50 system_aliases:
51   driver = redirect
52   allow_defer
53   data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}}
54   qualify_preserve_domain
55   retry_use_local_part
56
57 localuser:
58   driver = accept
59   local_parts = userx
60   transport = local_delivery
61
62
63 # ----- Transports -----
64
65 begin transports
66
67 local_delivery:
68   driver = appendfile
69   delivery_date_add
70   envelope_to_add
71   file = DIR/test-mail/$local_part
72   return_path_add
73   user = CALLER
74
75 file:
76   driver = appendfile
77   user = CALLER
78
79 # End