EOF
cat > "${testname}.post-expected" <<EOF
+Trying to connect to "127.0.0.1" ...
+Connecting to 127.0.0.1:${localport}...
<= 220 Not really an ESMTP server
=> EHLO nosuchhost.example.com
+<= 250-ready
<= 250 I'll buy that for a dollar!
=> MAIL FROM:<nobody@example.com>
<= 250 I'll buy that for a dollar!
EOF
test_post "${testname}.actual" "${testname}.expected" \
- > ${testname}.post 2>/dev/null
+ 2> ${testname}.post
check "${testname}.post-expected" "${testname}.post"