diff --git a/content/blog/email-debian.md b/content/blog/email-debian.md new file mode 100644 index 0000000..bd83aec --- /dev/null +++ b/content/blog/email-debian.md @@ -0,0 +1,41 @@ +--- +title: msmtp on debian +description: Enable email sending on debian servers +date: 2022-03-03 +--- + +Email offers a simple and reliable method for machine-user communication. [msmtp](https://marlam.de/msmtp/) is a handy current tool for setting up email-sending capabilities on a linux host. + + +## install + +- `apt install msmtp msmtp-mta` + +## configure + +- edit `/etc/msmtprc` + - full example https://marlam.de/msmtp/msmtprc.txt + - minimal config: +``` +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 +``` + +## more details +- https://wiki.debian.org/msmtp +- https://marlam.de/msmtp/