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