MUTT – encrypting password with GNUpg

To encrypt password with mutt, we will be using GNUpg, install it :

For Debian based : $ sudo apt-get install gnupg gnupg-agent
For RPM based : $ sudo yum install gnupg gnupg-agent

after installing it you need to generate an encryption key by using following.

gpg --gen-key

Select appropriate options. Enter you name, email and passphare when it asks. Do not forget your passphrase.
now create a file .pass place it in your home folder, I am placing it here :

touch ~/.mutt/.pass

contents fo following file should be :


encrypt it by using:

cd ~/.mutt
gpg --encrypt .pass

Now you will see a file is created as .pass.gpg , if it is there, you can delete orignal .pass file. After this step you have to make changes to .muttrc file. Append the following by doing appropriate changes

set imap_pass = `gpg -d ~/.mutt/.pass.gpg | awk '/GMail:/ {print $2}'`

NOTE : if imap_pass and smtp_pass are defined anywhere else, you have to remove them or comment those two lines like this :

#set imap_pass = ""
#set smtp_pass = ""

Thats it, now you can start mutt and it will ask the passphrase for your key, and will never irritate you again 🙂
Good Luck.

MUTT – The Ultimate Mailing Client

Mutt is a small but very powerful text-based mail client for Unix operating systems. The current stable public release version is; the current development release version is 1.5.21. For more information, refer :

First of all,

Download Needed files.

Next, Installing Mutt.

for Debian based : $ sudo apt-get install mutt urlview
for RPM based : $ sudo yum install mutt urlview

Thats it, mutt is installed, next you need to have a .muttrc configuration file now. Firstly execute following commands :

$ mkdir ~/.mutt
$ mkdir ~/.mutt/cache
$ mkdir ~/.mutt/cache/{bodies,headers}
$ touch ~/.mutt/certificates

Now look for muttrc file in the tar.gz archive, make changes according to your user,password and set your favourite editor to to compose messages. Place this file into your home directory and rename to .muttrc . Now you’re done, start mutt with :

$ mutt

Basic usage :

enter : To open a message and scroll down in a message
i : To get back to all messages screen
backspace : To scroll up in a message
r : To reply a message
m : To compose
y : To send composed email
left arrow : To go to previous message in reading screen
right arrow : To go to next message in reading screen
c then ? : To go to gmail folder list

That all for now, use “?” at any screen for help menu. Let your mouse, have some sleep ;-).

All email clients suck, this one just sucks less ~ Mutt.
Happy Mutting !