You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_sendmail/10_sendmail_smtp.sh

14 lines
276 B

#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>
if [ "$CONTAINERTEST" -eq "1" ]; then
t_Log "Running in container -> SKIP"
exit 0
fi
t_Log "Running $0 - Sendmail SMTP test."
echo "helo test" | nc -4 -w 3 localhost 25 | grep -q '250'
t_CheckExitStatus $?