yvwntr

msmtp on debian

Email offers a simple and reliable method for machine-user communication. msmtp is a handy current tool for setting up email-sending capabilities on a linux host.

install

configure

defaults
port 587
tls on

account exampleaccount

host mail.examplehost.tld

from tech@examplehost.tld

auth on

user tech@examplehost.tld
password SECRET


account default: exampleaccount

For allowing mail to bve send with standard mail command you need to append

set mta=/usr/bin/msmtp

to

/etc/mail.rc

more details