#
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.1
+HELO test
MAIL FROM:<ok@localhost>
RCPT TO:<z@test.ex>
QUIT
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.1
+HELO test
MAIL FROM:<ok@localhost>
RCPT TO:<z@test.ex>
QUIT
sleep 2
# Should want to connect, but fail
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.1
+HELO test
MAIL FROM:<ok@localhost>
RCPT TO:<z@test.ex>
QUIT
# Test unsuccessful caching
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.1
+HELO test
MAIL FROM:<bad@localhost>
RCPT TO:<z@test.ex>
QUIT
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.1
+HELO test
MAIL FROM:<bad@localhost>
RCPT TO:<z@test.ex>
QUIT
# Test caching of rejection of MAIL FROM:<>
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
550 REJECT MAIL FROM
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.1
+HELO test
MAIL FROM:<ok@localhost>
RCPT TO:<z@test.ex>
QUIT
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.1
+HELO test
MAIL FROM:<ok@localhost>
RCPT TO:<z@test.ex>
QUIT
# Test caching of rejection of postmaster
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.2
+HELO test
MAIL FROM:<ok@otherhost>
RCPT TO:<z@test.ex>
QUIT
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.2
+HELO test
MAIL FROM:<ok@otherhost>
RCPT TO:<z@test.ex>
QUIT
# Test caching of accepting of postmaster
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.2
+HELO test
MAIL FROM:<ok@otherhost2>
RCPT TO:<z@test.ex>
QUIT
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.2
+HELO test
MAIL FROM:<ok@otherhost2>
RCPT TO:<z@test.ex>
QUIT
# Test caching of accepting a random address
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
-RCPT TO
+RCPT TO:<myhost.test.ex-
250 OK
QUIT
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.3
+HELO test
MAIL FROM:<ok@otherhost3>
RCPT TO:<z@test.ex>
QUIT
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.3
+HELO test
MAIL FROM:<otherok@otherhost3>
RCPT TO:<z@test.ex>
QUIT
# Test caching of accepting a random address and postmaster
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
-RCPT TO
+RCPT TO:<myhost.test.ex-
250 OK
QUIT
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.4
+HELO test
MAIL FROM:<ok@otherhost4>
RCPT TO:<z@test.ex>
QUIT
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.4
+HELO test
MAIL FROM:<ok@otherhost4>
RCPT TO:<z@test.ex>
QUIT
# Test caching of rejecting a random address and postmaster
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
-MAIL FROM
+MAIL FROM:<>
250 OK
-RCPT TO
+RCPT TO:<myhost.test.ex-
550 NOT OK
RSET
250 OK
-MAIL FROM
+MAIL FROM:<>
250 OK
-RCPT TO
+RCPT TO:<ok@otherhost41>
250 OK
RSET
250 OK
-MAIL FROM
+MAIL FROM:<>
250 OK
-RCPT TO
+RCPT TO:<postmaster@otherhost41>
250 OK
QUIT
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.4
+HELO test
MAIL FROM:<ok@otherhost41>
RCPT TO:<z@test.ex>
QUIT
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.4
+HELO test
MAIL FROM:<ok@otherhost41>
RCPT TO:<z@test.ex>
QUIT
# address has to be tested
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.2
+HELO test
MAIL FROM:<ok@otherhost21>
RCPT TO:<z@test.ex>
QUIT
****
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.2
+HELO test
MAIL FROM:<ok2@otherhost21>
RCPT TO:<z@test.ex>
QUIT
# Test caching of rejecting a random address
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.3
+HELO test
MAIL FROM:<ok@otherhost31>
RCPT TO:<z@test.ex>
QUIT
****
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.3
+HELO test
MAIL FROM:<okok@otherhost31>
RCPT TO:<z@test.ex>
QUIT
sleep 2
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -DPEX=1s -d-all+verify -v -bs -oMa V4NET.0.0.3
+HELO test
MAIL FROM:<okokok@otherhost31>
RCPT TO:<z@test.ex>
QUIT
# Timeout on the RCPT for random
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
*sleep 2
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.5
+HELO test
MAIL FROM:<okok@otherhost51>
RCPT TO:<z@test.ex>
QUIT
# Postmaster_sender set non-empty
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.6
+HELO test
MAIL FROM:<okokok@otherhost52>
RCPT TO:<z@test.ex>
QUIT
# Header_sender sender set non-empty
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -odq -v -bs -oMa V4NET.0.0.7
+HELO test
MAIL FROM:<ok7@otherhost53>
RCPT TO:<z@test.ex>
DATA
# Timeout on RCPT for header_sender (defer_ok test)
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
*sleep 2
****
sudo exim -d-all+verify -odq -v -bs -oMa V4NET.0.0.8
+HELO test
MAIL FROM:<ok7@otherhost53>
RCPT TO:<z@test.ex>
DATA
# Test full postmaster check
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.9
+HELO test
MAIL FROM:<ok@otherhost9>
RCPT TO:<z@test.ex>
QUIT
# Test postmaster_mailfrom with random
server PORT_S
220 Server ready
-HELO
+EHLO
250 OK
MAIL FROM
250 OK
250 OK
****
sudo exim -d-all+verify -v -bs -oMa V4NET.0.0.10
+HELO test
MAIL FROM:<ok@otherhost10>
RCPT TO:<z@test.ex>
QUIT