{"id":58,"date":"2003-09-08T20:59:38","date_gmt":"2003-09-08T19:59:38","guid":{"rendered":"http:\/\/wp.devco.net\/?p=58"},"modified":"2009-10-09T17:36:55","modified_gmt":"2009-10-09T16:36:55","slug":"mutt_smtp_via_msmtp","status":"publish","type":"post","link":"https:\/\/www.devco.net\/archives\/2003\/09\/08\/mutt_smtp_via_msmtp.php","title":{"rendered":"Mutt SMTP via msmtp"},"content":{"rendered":"

I use the Mutt<\/a> 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<\/a>.
\nEnter
msmtp<\/a>, it is a SMTP “plugin” for MUA’s.<\/p>\n


\nMSMTP 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.
\nAll you have to do in mutt is put the following in the .muttrc:
\nset sendmail=”\/path\/to\/msmtp”
\nand have a configuration file for msmtp in .msmtprc:
\naccount default
\nhost <smtp server>
\nfrom <user@domain.com>
\nIt does ofcource get more complex than this, especially when you configure AUTH and so forth, see the man page for details.
\nIf you are a
FreeBSD<\/a> 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.
\nRelated Links:
\n
Mutt<\/a>
\n
MSMTP Homepage<\/a>
\n
ESMTP<\/a> – an alternative.<\/p>\n","protected":false},"excerpt":{"rendered":"

I use the Mutt<\/a> MUA and 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<\/a>.
\nEnter
msmtp<\/a>, it is a SMTP “plugin” for MUA’s.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[5],"tags":[30,19,33],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/58"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":2,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":940,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/58\/revisions\/940"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}