replace fatal() with smtp_free()
add missing bits for lmtp support (from Ashish SHUKLA).