This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
python-emails/emails/testsuite/contrib/local-smtpd/run-smtpd.sh

15 lines
306 B
Bash
Executable File

#!/bin/sh
# Looks like python3 has a bug in smtpd (SMTPSenderRefused: (503, 'Error: send HELO first'...)
# So we try to start python2
if which python2.7; then
PYTHON=python2.7
elif which python2.6; then
PYTHON=python2.6
else
PYTHON=python
fi
echo "use python $PYTHON"
$PYTHON run-smtpd.py $@