Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 0198 |
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 | |
9 | queue_run_in_order | |
10 | trusted_users = CALLER | |
11 | ||
12 | # This test originated as an Exim configuration check local parts before | |
13 | # relaying certain domains to a specific host. | |
14 | ||
15 | # We actually check this not by verifying, but by feeding in a message | |
16 | # using BSMTP. | |
17 | ||
18 | # ----- Main settings ----- | |
19 | ||
20 | domainlist local_domains = copy.domain | |
21 | ||
22 | NEXTHOST = V4NET.0.0.1 | |
23 | ||
24 | # This is the file containing valid local parts, and its search type. | |
25 | ||
26 | LOCALPARTFILE = DIR/aux-fixed/TESTNUM.locals | |
27 | SEARCHTYPE = lsearch | |
28 | ||
29 | ||
30 | # ----- Routers ----- | |
31 | ||
32 | begin routers | |
33 | ||
34 | # This router passes all addresses to the passing-on transport. It is | |
35 | # used for the domains for which no local part checking is being done. | |
36 | ||
37 | passall: | |
38 | driver = manualroute | |
39 | domains = ! +local_domains | |
40 | route_list = * NEXTHOST byname | |
41 | transport = pass_on | |
42 | no_more | |
43 | ||
44 | # This router checks for the existence of the local part in a file; if | |
45 | # found, the address is passed on for delivery to the next host. | |
46 | ||
47 | check_file: | |
48 | driver = accept | |
49 | condition = ${lookup{$local_part}SEARCHTYPE{LOCALPARTFILE}} | |
50 | retry_use_local_part | |
51 | transport = pass_on | |
52 | ||
53 | ||
54 | # ----- Transports ----- | |
55 | ||
56 | # This transport is used for passing the message on to the next host. | |
57 | ||
58 | begin transports | |
59 | ||
60 | pass_on: | |
61 | driver = smtp | |
62 | connect_timeout = 1s | |
63 | gethostbyname | |
64 | hosts = NEXTHOST | |
65 | ||
66 | ||
67 | # ----- Retry ----- | |
68 | ||
69 | ||
70 | begin retry | |
71 | ||
72 | * * F,2h,15m; G,16h,1h,1.5; F,4d,8h | |
73 | ||
74 | ||
75 | # End |