I have a fleet of Ubuntu clients running msmtp-mta along with heirloom-mailx.I'd like to have the same /etc/msmtprc on all machines.At present, when someone uses mailx or sendmail, the mail will be from user@mydomain.com and the only clue to the client machine is the IP address in the mail header.Is there a way to add the client host name to every mail sent? LikePrepend it to the subject orauto-attach a file to any mail orchange mydomain.com to client.mydomain.com (remember, one file to rule them all, and changes in host name should be met automatically)Note: I cannot configure the actual SMTP-Server, just the msmtp client.
msmtp-mta: Add $HOSTNAME to every mail
sendmail;mailx