The .muttrc configuration variables relevant to IMAP are shown below. You should replace "example.com" with the domain you are connecting to, and "user@example.com" with the user you will be logging in as.
set folder='{example.com:143}' # set port to 993 if using SSL
mailboxes {example.com:143}INBOX # set port to 993 if using SSL
set imap_user='user@example.com'
set ssl_starttls=yes
# You may need to modify the following authenticators depending on how
# Courier was configured. The authenticators below should work with a
# stock Courier installation.
set imap_authenticators="cram-md5:login"
set imap_force_ssl=no # set to "yes" to force SSL
Two things to note:
INBOX. (INBOX followed by a dot). Make sure you
use the space bar
to get into the INBOX, not the Enter key. The Enter
key is used for displaying subfolders, and you'll just go into
a seeming loop if you type Enter to access mail in the INBOX.