Simple msmtp configuration to send out status emails, etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####### | |
### mSMTP configuration | |
####### | |
## Set defaults for all accounts | |
defaults | |
auth on | |
tls on | |
tls_trust_file /etc/ssl/certs/ca-certificates.crt | |
logfile /var/log/msmtp.log | |
## Account: user@myserver.com | |
account myserver.com | |
host smtp.myserver.com | |
port 587 | |
from "ServerName VM" <user@myserver.com> | |
user user@myserver.com | |
password MyV3ry$3cur3P@a$$w0rd_ | |
## Set default account | |
account default: myserver.com | |
aliases /etc/msmtp_aliases |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the configuration referenced in my blog post about setting an easy way to use msmtp to let your Linux servers send you status emails, notifications about updates, log reports, etc. without complicated postfix or exim setups! It's here