Blog

Article Tags

Minimal Mutt Config Files

By William Jeffrey Rankin, Sat July 13 2024

My minimal Mutt configuration files for iCloud Mail and Gmail. Both require two-factor authentication, and app-specific passwords be generated. Notes: <username> refers to the email address prefix. editor can be any editor you choose but should, of course, be Vim.

iCloud Mail

set imap_user = '<username>'
set imap_pass = '<app-specific password>'

set smtp_pass = '<app-specific password>'
set smtp_url  = 'smtp://<icloud email address>@smtp.mail.me.com:587/'

set from      = '<icloud email address>'
set realname  = '<full name>'
set editor    = 'vim'

set folder    = "imaps://$imap_user:$imap_pass@imap.mail.me.com:993/"
set spoolfile = '+INBOX'
set postponed = '+Drafts'
set record    = '+Sent Messages'
set trash     = '+Deleted Messages'
set mbox      = '+Archive'

set ssl_starttls = yes
set ssl_force_tls = yes

Gmail

set imap_user = '<gmail address>'
set imap_pass = '<app-specific password>'

set smtp_pass = '<app-specific password>'
set smtp_url  = 'smtps://<username>@smtp.gmail.com'

set from      = '<gmail email address>'
set realname  = '<full name>'
set editor    = 'vim'

set folder    = 'imaps://imap.gmail.com/'
set spoolfile = '+INBOX'
set trash     = '+[Gmail]/Trash'
set postponed = '+[Gmail]/Drafts'
set record    = '+[Gmail]/Sent Mail'

set ssl_starttls = yes
set ssl_force_tls = yes