stubSMTP 170 B

12345678
  1. #!/usr/bin/env bash
  2. if [ -z $1 ]
  3. then port=1025
  4. else port=$1
  5. fi
  6. echo "Starting dumb mail server on localhost:$port"
  7. python -m smtpd -n -c DebuggingServer localhost:$port