updated to work with postfix
cleanup tabs
fixed whitespace
added lost connection test
added debugging code and bump version