Using Gmail with Mutt

I recently switched to using mutt for email and while setting up mutt to use imap is pretty straightforward, this tutorial will also document some advanced concepts such as encrypting your account password and sending emails from a different From address.

This tutorial assumes that you have some familiarity with using mutt and have installed it with sidebar support (sudo apt-get install mutt-patched for the ubuntu folks) and are comfortable with editing your muttrc.

If you would just like to skip to the end, my mutt configuration file can be found here.

Initial configuration

The first order of business is to enable IMAP support in your gmail account settings. Then, the following lines are required in muttrc.

set imap_user = “victorparmar@gmail.com”
set imap_keepalive = 30
unset imap_passive # allow mutt to open new imap connection automatically
set folder = “imaps://imap.gmail.com”
set spoolfile = “+[Gmail]/All Mail”
set postponed = “+[Gmail]/Drafts”
set header_cache = ~/.mutt/victorparmar/headers
set message_cachedir = ~/.mutt/victorparmar/bodies
set certificate_file = ~/.mutt/certificates
set smtp_url =


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/Y-LJvF0IzAg/gmail-with-mutt

Original article

Comments are closed.

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: