summaryrefslogtreecommitdiff
path: root/test/confs/0198
blob: f754a31878b1d7af08e157c9c422b79b1b0898f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Exim test configuration 0198

.include DIR/aux-var/std_conf_prefix

queue_run_in_order
trusted_users = CALLER

# This test originated as an Exim configuration check local parts before
# relaying certain domains to a specific host.

# We actually check this not by verifying, but by feeding in a message
# using BSMTP.

# ----- Main settings -----

domainlist local_domains = copy.domain

NEXTHOST = V4NET.0.0.1

# This is the file containing valid local parts, and its search type.

LOCALPARTFILE = DIR/aux-fixed/TESTNUM.locals
SEARCHTYPE = lsearch


# ----- Routers -----

begin routers

# This router passes all addresses to the passing-on transport. It is
# used for the domains for which no local part checking is being done.

passall:
  driver = manualroute
  domains = ! +local_domains
  route_list = * NEXTHOST byname
  transport = pass_on
  no_more

# This router checks for the existence of the local part in a file; if
# found, the address is passed on for delivery to the next host.

check_file:
  driver = accept
  condition = ${lookup{$local_part}SEARCHTYPE{LOCALPARTFILE}}
  retry_use_local_part
  transport = pass_on


# ----- Transports -----

# This transport is used for passing the message on to the next host.

begin transports

pass_on:
  driver = smtp
  connect_timeout = 1s
  gethostbyname
  hosts = NEXTHOST


# ----- Retry -----


begin retry

*    *    F,2h,15m; G,16h,1h,1.5; F,4d,8h


# End