Flaxplax

Personal documentation

Msmtp Mta

Create bash script file like /usr/local/bin/msmtp-pseudo-mta.bash

#! /bin/bash

sed -e "s/From: root (Cron Daemon)/From: WHATERVER YOU LIKE/" | msmtp $BASH_ARGV

Make it executable

chmod 755  msmtp-pseudo-mta.bash

Symlink is as sendmail

ln -s /usr/local/bin/msmtp-pseudo-mta.bash /usr/sbin/sendmail
Last updated on 9 Apr 2022
Published on 9 Apr 2022