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