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