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