Msmtp

From wikinotes
Revision as of 22:13, 1 January 2021 by Will (talk | contribs) (→‎Configuration)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

msmtp is a simple smtp server. SMTP servers are used to send mail.

Documentation

github https://github.com/marlam/msmtp-mirror
man msmtp https://manpages.debian.org/testing/msmtp/msmtp.1.en.html
archwiki https://wiki.archlinux.org/index.php/Msmtp

Locations

~/.msmtprc config

Install

sudo pacman -S msmtp
 
touch ~/.msmtprc
chmod 600 ~/.msmtprc

Usage

# send test message
echo "hello there." | msmtp -a default willjpittman@gmail.com

Configuration

Login Auth

# ~/.msmtprc
# NOTE: this file MUST have the permissions: 600

account work
host smtp.gmail.com
port 587
protocol smtp
auth on
from willjpittman@gmail.com
user willjpittman@gmail.com
passwordeval "~/.get_my_password.sh"
tls on
tls_nocertcheck