much more error checking, use helo if esmtp is not available
dummy server for local testing

Signed-off-by: alexlehm <alexlehm@gmail.com>