Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Minimal configuration for Neomutt/Mutt and Gmail/G Suite
# Minimal configuration for Neomutt/Mutt and Gmail/G Suite
# Decrypts passwords quietly
# see: https://wiki.archlinux.org/index.php/Mutt#Passwords_management
source "gpg -dq $HOME/.my-pwds.gpg |"
# Username and password for your Gmail/G Suite account
set imap_user = "john.snow@winterfell.ext"
# Password assigned from decrypted file
set imap_pass = $my_pass
# Specifies the default location of your mailboxes
set folder = "imaps://imap.gmail.com:993"
# Configure Simple Mail Transfer Protocol for sending mail
# for Gmail
set smtp_url = "smtps://yourusername@smtp.gmail.com:587"
# for G Suite with own domain
#set smtp_url = "smtps://yourusername@yourdomain.ext@smtp.gmail.com:587"
set smtp_pass = $my_pass
# Location of inbox
set spoolfile = "+INBOX"
# Location of drafts
set postponed = "+[GMail]/Drafts"
# Activate caching, as it can greatly improve speed
set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
# Disable saving outgoing mail since Gmail saves them by default.
set record = ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment