Initial revisions, taken from msmtp v1.4.31
Ping's -w argument is in caps on macos