You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

898 B

title description date
msmtp on debian Enable email sending on debian servers 2022-03-02

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

  • apt install msmtp msmtp-mta bsd-mailx

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