Blame tests/p_sendmail/10_sendmail_smtp.sh

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