I would like to use msmtp to send mail on my Linux machine. Before and after sending mail using this tool, I would like to execute some scripts to do some setup and teardown.
I don't see an msmtp configuration option to run scripts before and after sending mail. I don't want to "hack" the system by replacing the binary with a script that will do the work. Do I have another option to do this?
/usr/sbin/sendmail
(traditionally a full MTA with queueing and so on) with something like msmtp...sendmail
andmsmtp
can live together on the same system, they are 2 separate binaries. Maybe you think aboutpostfix
.