Skip to content

Instantly share code, notes, and snippets.

@asifbacchus
Last active September 18, 2019 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asifbacchus/8c4a6c885602087258d9e2e24fb55ada to your computer and use it in GitHub Desktop.
Save asifbacchus/8c4a6c885602087258d9e2e24fb55ada to your computer and use it in GitHub Desktop.
Simple msmtp configuration to send out status emails, etc.
#######
### 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
@asifbacchus
Copy link
Author

asifbacchus commented Jun 30, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment