Email with Mutt

Mutt is a fab email client which I’ve stumbled upon. This app has the looks that only mother can love however it does the job very well. If you are a LAMP developer and use the terminal to do all your development than this email client is for you. It saves the hassle of flicking from one app to another just to view your email.

in this article I hope to show you how to configure mutt to use your gmail account. So lets get started…


install mutt using synaptic (if you use debian, or yum for red hat or emerge gentoo).


you’ve installed mutt what now…create a file .muttrc (yes there is a dot in front of the file) on your home directory and add the following lines

set imap_user = "" #of-course change it to your email
set imap_pass = "password"

set smtp_url = "smtp://"
set smtp_pass = "password"
set from = ""
set realname = "My Name"

set folder = "imaps://"
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"

set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set certificate_file = ~/.mutt/certificates

set move = on

…also create files ~/.mutt/cache/headers, ~/.mutt/cache/bodies and /.mutt/certificates (~ this squiggle is your home directory). done!

Using Mutt

easy peasy lemon squeezy 🙂 type mutt on your command-line.


use arrows to move up and down to navigate to your email and press enter to read. hooray! now, press “i” to go back to your inbox.

That is it for now.


apache2: Could not reliably determine the server’s fully qualified domain name, using for ServerName httpd not running, trying to start

Okay, recently I have had this issue appearing during restarting of apache2 server. To fix this issue just add the following…

ServerName ""

… to your apache2.conf file. I’m using debian so in my case the config file is located at /etc/apache2/