#language en ---- == using msmtp as mailer for caff == * First install packages (msmtp-mta is not necessary) {{{ apt install msmtp }}} * Append the following to ~/.caffrc to use msmtp as mailer. (Thanks to Ryan Kavanagh's [[https://ryanak.ca/2016/04/16/Specifying-a-custom-MTA-path-in-caff.html|blog post]]) {{{ $ENV{'PERL_MAILERS'} = 'sendmail:/usr/bin/msmtp'; }}} * refer [[msmtp]] page for it's configuration == pros and cons of using msmtp (than other MTA by caff) == Pros * keep exim4 or other MTA on system, not affected * can store email's credential in OpenPGP encrypted file or gnome keyring, which is much safer than plain text file * can log success or failure in syslog Cons * no cons at the moment