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