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