Use compressed form of ipv6 in $sender_host_address under -bh. Bug 3027
[exim.git] / test / confs / 0139
1 # Exim test configuration 0139
2
3 .include DIR/aux-var/std_conf_prefix
4
5
6 # ----- Main settings -----
7
8 domainlist local_domains = exim.test.ex
9 trusted_users = CALLER
10 hosts_require_helo =
11
12 acl_smtp_helo = check_helo
13 acl_smtp_rcpt = check_recipient
14 acl_smtp_mail = check_mail
15 acl_smtp_vrfy = check_vrfy
16
17 # ------ ACL ------
18
19 begin acl
20
21 check_helo:
22   warn    dnslists = rbl2.test.ex!=127.0.0.3 : rbl3.test.ex=127.0.0.3
23   accept
24
25 check_vrfy:
26   warn    dnslists = rbl.test.ex=127.0.0.1
27   warn    dnslists = rbl.test.ex!=127.0.0.1
28   warn    dnslists = rbl.test.ex!=127.0.0.3
29   warn    dnslists = rbl.test.ex==127.0.0.1
30   warn    dnslists = rbl.test.ex==127.0.0.1,127.0.0.2
31   warn    dnslists = rbl.test.ex!==127.0.0.1
32   warn    dnslists = rbl.test.ex!==127.0.0.3
33   warn    dnslists = rbl.test.ex!==127.0.0.1,127.0.0.2
34   warn    dnslists = rbl.test.ex
35   accept
36
37 check_mail:
38   warn    dnslists = rbl4.test.ex&0.0.0.6
39   warn    dnslists = rbl4.test.ex&127.0.0.3
40   warn    dnslists = rbl4.test.ex!&0.0.0.7
41           add_header = DNSlist: $dnslist_domain $dnslist_text $dnslist_matched
42   warn    dnslists = rbl5.test.ex,rbl4.test.ex=127.0.0.128
43           add_header = DNSlist: $dnslist_domain $dnslist_text $dnslist_matched
44   accept
45
46 check_recipient:
47   warn    message = X-Warn: host is listed in $dnslist_domain but not =127.0.0.3\
48                     ${if def:dnslist_text{\n  $dnslist_text}}
49           dnslists = rbl3.test.ex!=127.0.0.3
50   deny    message = host is listed in $dnslist_domain with value 127.0.0.3\
51                     ${if def:dnslist_text{\n$dnslist_text}}
52           dnslists = rbl3.test.ex=127.0.0.3
53   require verify = sender
54   deny    message = unrouteable address
55          !verify = recipient
56   accept  domains = +local_domains
57   deny    message = relay not permitted
58
59
60 # ----- Routers -----
61
62 begin routers
63
64 system_aliases:
65   driver = redirect
66   allow_defer
67   data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}}
68   qualify_preserve_domain
69   retry_use_local_part
70
71 localuser:
72   driver = accept
73   local_parts = userx
74   transport = local_delivery
75
76
77 # ----- Transports -----
78
79 begin transports
80
81 local_delivery:
82   driver = appendfile
83   delivery_date_add
84   envelope_to_add
85   file = DIR/test-mail/$local_part
86   create_file = DIR/test-mail
87   return_path_add
88   user = CALLER
89
90 file:
91   driver = appendfile
92   user = CALLER
93
94 # End