Select Page
NOTE: This is a static archive of an old blog, no interactions like search or categories are current.

I use the Mutt MUA, for years I hated the fact that there is no simple way to make it speak SMTP. The Mutt developers refuse to code in SMTP support since they maintain its a MUA not a MTA, see their FAQ.
Enter msmtp, it is a SMTP “plugin” for MUA’s.


MSMTP is a drop in replacement for the sendmail binary, you configure it with a configuration file for your SMTP settings, it even support TLS, SMTP AUTH and all that.
All you have to do in mutt is put the following in the .muttrc:
set sendmail=”/path/to/msmtp”
and have a configuration file for msmtp in .msmtprc:
account default
host <smtp server>
from <user@domain.com>
It does ofcource get more complex than this, especially when you configure AUTH and so forth, see the man page for details.
If you are a FreeBSD user you can simply install the port from /usr/ports/mail/msmtp, though at this very moment that will still install version 0.4.2 – which uses a command line based config – the update to 0.5.0 should go through any day now.
Related Links:
Mutt
MSMTP Homepage
ESMTP – an alternative.