Mutt is a small but very powerful text-based mail client for Unix operating systems.

The following examples are based on a fictive user account with user name hmuster, first name Hans and last name Muster. Please replace all occurrences in text that you copy with your real email account information. Students must also change to


If you have not previously set up Mutt then remove ~/.muttrc if it is already there and create a new ~/.muttrc with the content below. Otherwise just edit your existing ~/.muttrc and make sure that the following definitions are there:

set imap_user        = hmuster
set spoolfile        = imaps://
set folder           = imaps://
set smtp_url         = "smtp://"
set ssl_starttls     = yes
set ssl_force_tls    = yes
set smtp_authenticators = 'gssapi:login'

set mail_check       = 300
set imap_keepalive   = 600

set folder           = "{}"
set spoolfile        = "{}inbox"
set record           = "{}Sent"
set postponed        = "{}Draft"

set header_cache     = ~/.mutt/headercache
set message_cachedir = ~/.mutt/messagecache

set from             = ''
set realname         = 'Hans Muster'
set hostname         =

mailboxes =Drafts =Sent
unset mbox

Have a better example configuration? Does this configuration not work? Please let us know.

Page URL:
© 2024 Eidgenössische Technische Hochschule Zürich