Bugs in temporary error message handling for smtp in lmtp mode.
[exim.git] / test / scripts / 0000-Basic / 0531
CommitLineData
75def545
PH
1# LMTP over TCP/IP - temporary error handling
2need_ipv4
3# This one has no retry time, so will be bounced immediately.
4#
5server PORT_S
6220 ESMTP
7LHLO
8250-OK
9250 HELP
10MAIL FROM:
11250 Sender OK
12RCPT TO:
13250 Receiver OK
14RCPT TO:
15250 Receiver OK
16DATA
17354 Send it
18.
19450 TEMPERROR
20250 OK
21QUIT
22250 OK
23****
24exim -odi userx@test.ex usery@test.ex
25This is a test message.
26****
27# This one has a retry time, so will be deferred.
28#
29server PORT_S
30220 ESMTP
31LHLO
32250-OK
33250 HELP
34MAIL FROM:
35250 Sender OK
36RCPT TO:
37250 Receiver OK
38DATA
39354 Send it
40.
41450 TEMPERROR
42QUIT
43250 OK
44****
45exim -odi userx@retry.test.ex
46This is a test message.
47****
48sleep 1
49# Should by now have exceeded retry time.
50server PORT_S
51220 ESMTP
52LHLO
53250-OK
54250 HELP
55MAIL FROM:
56250 Sender OK
57RCPT TO:
58250 Receiver OK
59DATA
60354 Send it
61.
62450 TEMPERROR
63QUIT
64250 OK
65****
66exim -q
67****
68# This one gives a temporary error for RCPT, no retry
69#
70server PORT_S
71220 ESMTP
72LHLO
73250-OK
74250 HELP
75MAIL FROM:
76250 Sender OK
77RCPT TO:
78450 TEMPERROR
79QUIT
80250 OK
81****
82exim -odi userx@test.ex
83This is a test message.
84****
85no_msglog_check