You're viewing a single post. I have much more to say! The main blog page is a good starting point.

Mutt and IMAP, no password

If you use Mutt to access an IMAP server that runs on the same host, there’s no need to provide a password to login to your IMAP server. Put the following in your ~/.mutt/muttrc (adapt it to your own setup):

set spoolfile = imap://buttercup.townsville/INBOX.inbox
set folder = imap://buttercup.townsville/INBOX.
set tunnel="imapd 2>/dev/null"

The trick is the tunnel setting. Put ssh -q hostname in front of it if you use ssh keys without a password and want to log into a remote IMAP host. Example:

set tunnel="ssh -q buttercup.townsville imapd 2>/dev/null"

Oh, and my hostnames come from the Powerpuff Girls show.