debug tidying
[exim.git] / test / scripts / 0000-Basic / 0211
1 # SMTP connection & EHLO/HELO error responses (+log_sender_on_delivery)
2 need_ipv4
3 munge optional_dsn_info
4 #
5 exim -z "Test: temp-rej connect"
6 ****
7 server PORT_S
8 450 I'm busy
9 QUIT
10 250 OK
11 ****
12 exim -odi userx@domain1
13 Test message 1
14 ****
15 #
16 sudo rm DIR/spool/db/*
17 exim -z "Test: temp-rej helo"
18 ****
19 server PORT_S
20 220 Connected OK
21 EHLO
22 450 I'm busy
23 HELO
24 450 I'm busy
25 QUIT
26 250 OK
27 ****
28 exim -qf
29 ****
30 #
31 sudo rm DIR/spool/db/*
32 exim -z "Test: drop conn after banner"
33 ****
34 server PORT_S
35 220 Connected OK
36 ****
37 exim -qf
38 ****
39 #
40 sudo rm DIR/spool/db/*
41 exim -z "Test: reject connect"
42 ****
43 server PORT_S
44 550 Go away (A)
45 QUIT
46 250 OK
47 ****
48 exim -qf
49 ****
50 #
51 sudo rm DIR/spool/db/*
52 exim -z "Test: reject helo"
53 ****
54 server PORT_S
55 220 Connected OK
56 EHLO
57 550 Go away (B)
58 HELO
59 550 Go away (C)
60 QUIT
61 250 OK
62 ****
63 exim -odi userx@domain1 usery@domain2
64 Test message 2
65 ****
66 #
67 exim -z "Test: reject ehlo, then close (late, giving time for HELO)"
68 ****
69 sudo rm DIR/spool/db/retry
70 server PORT_S
71 220 Connected OK
72 EHLO
73 550 You are banned
74 HELO
75 ****
76 exim -odi userx@domain1
77 Test message 4
78 ****
79 #
80 #
81 #
82 sudo rm DIR/spool/db/*
83 exim -z "Test: smtp-reject conn on 1MX, timeout TCP conn on 2MX"
84 ****
85 server PORT_S 2
86 554 no smtp service here
87 QUIT
88 220 bye
89 *eof
90 *sleep 2
91 ****
92 exim -DLIST -qf
93 ****
94 #
95 #
96 no_msglog_check