switched from a pure msmtp approach to a more general (mailx) solution