SRS: avoid expanding ${srs_encode...} when guarded by ${if...}
[exim.git] / test / confs / 0622
1 # Exim test configuration 0622
2
3 SERVER=
4 HAP=
5
6 .include DIR/aux-var/std_conf_prefix
7
8 primary_hostname = myhost.test.ex
9 log_selector = +pipelining +received_recipients +smtp_connection
10
11
12 # ----- Main settings -----
13
14 acl_smtp_rcpt = check_rcpt
15
16 begin acl
17
18 check_rcpt:
19         defer
20                 condition = ${if eq {$acl_m0}{1}}
21                 recipients = B@test.ex : C@test.ex : D@test.ex : E@test.ex : F@test.ex 
22                 message = 452 4.5.3 Try again
23
24         defer
25                 condition = ${if eq {$acl_m0}{2}}
26                 recipients = C@test.ex : D@test.ex
27                 message = 452 4.5.3 Try again
28
29         warn
30                 recipients = A@test.ex
31                 set acl_m0 = 1
32
33         warn
34                 recipients = B@test.ex
35                 set acl_m0 = 2
36
37         accept
38
39
40 # ----- Routers -----
41
42 begin routers
43
44 server:
45   driver =      redirect
46   condition =   ${if eq {SERVER}{server} {yes}{no}}
47   data =        :blackhole:
48
49 client:
50   driver =      accept
51   condition =   ${if eq {SERVER}{server} {no}{yes}}
52   retry_use_local_part
53   transport =   send_to_server
54
55
56 # ----- Transports -----
57
58 begin transports
59
60 send_to_server:
61   driver = smtp
62   allow_localhost
63   hosts = 127.0.0.1
64   port = PORT_D
65   max_rcpt = 0
66   HAP
67
68 # ----- Retry -----
69
70
71 begin retry
72
73 * * F,5d,10s
74
75
76 # End