Msmtp

From ArchWiki
Revision as of 19:13, 3 August 2008 by Shining (Talk | contribs) (Taken from the msmtp section on the mutt page and rewritten)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Msmtp is a very simple and easy to use smtp client.

Quick Start

msmtp is in the [extra] repository.

 pacman -S msmtp

Open up ~/.msmtprc in your favorite editor. The following is an example of an .msmtprc for several accounts:

# A first gmail address
account gmail
host smtp.gmail.com
port 587
protocol smtp
auth on
from username@gmail.com
user username@gmail.com
password mypassword
tls on
tls_starttls on
tls_trust_file /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt

# A second gmail address
account gmail2 : gmail
from username2@gmail.com
user username2@gmail.com
password mypassword2

# A freemail service
     account freemail
     host smtp.freemail.example
     from joe_smith@freemail.example
     auth on
     user joe.smith
     password secret
     
# Set a default account
account default : gmail

This file needs to be read/write only to the user:

chmod 600 ~/.msmtprc