Clone of msmtp from sourceforge, plus my modifications