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
port 587
protocol smtp
auth on
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
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