Mutt is a command line email app for Linux and here’s how to set it up

Mutt is a command line email app for Linux; we proceed our collection of evaluations for Linux-based command line functions. Check out MusicCube (music player) or nnn (file manager).

Like many terminal packages, it too has a studying curve, maybe greater than the typical app. We’ll strive to assist simplify the method to set it up and clarify how to use it.

Mutt view inbox

Open a terminal to run the app and kind mutt. The app’s operating however cannot work as a result of you have not setup your email account.

This is the place chances are you’ll get confused: How do I set up Mutt?

Create the configuration file

We want to place the configuration file “muttrc” within the location ~/.mutt/muttrc. Use the mkdir command or manually create it in your house/USERNAME folder. Edit the muttrc utilizing any textual content editor; this doc will comprise the settings that are required to authenticate the email account.

Tip: I am going to inform you how I discovered to use this system. Add one line (command) to the muttrc at a time, run the app and see what occurs. It took some trial and error, however it was a rewarding expertise.

If you are utilizing 2-factor authentication (and you actually ought to), you may want to use an app password (for Gmail, Outlook, and so on) to login.

Add the next traces to the muttrc file.

set imap_user = [email protected]
set imap_pass = YOUR PASSWORD

Let’s add the URL for the account. Say, we’re going to use Gmail over IMAP and SMTP, you need to add this line:

set folder = imaps://

Note: When you strive to ship a mail, mutt will ask you to enter the password, you possibly can set the smtp_pass attribute to use your IMAP password to keep away from manually getting into it each time.

We’ll want a folder to obtain your mails out of your inbox. Without this, Mutt can not operate. So add the next command to the config.

set spoolfile = +INBOX

You might have observed that mutt takes a very long time to begin up (fetching message headers). To cut back this, you possibly can set up the cache utilizing the command

set header_cache = ~/.cache/mutt

Try operating mutt once more and it ought to begin immediately, as a result of the cache has been saved domestically. Similarly, you possibly can outline extra settings for the Sent, Drafts folders, and so on.

Mutt is a command line email app for Linux and here's how to set it up


The menu bar on the high of the window enables you to navigate between numerous tabs.  A listing of keyboard shortcuts is displayed just under the menubar. The giant pane within the middle is the message viewer pane. You will see the mails that’re in your inbox together with the date, title of the sender and email topic. Highlight a message (use the arrow keys), and press enter to view the message.You can scroll down the message/inbox utilizing Page Down and Page Up.

Mutt doesn’t have an email composer built-in, so you may want to use a textual content editor. You can use superior ones like Vim, emacs, or stick to the essential editors.

Tip: Add the command set editor=EDITOR to your muttrc. Replace the EDITOR together with your favourite app, for e.g. set editor=emacs.

Press m to compose a new mail, and you may be prompted to choose the recipient’s email tackle, and then the topic. The editor will open within the subsequent step. Save the doc and shut it. Now, on the ship display in mutt, hit y to ship the mail.

Mutt send mail

Try sending an email to your self to check the performance and ensure that the whole lot is set up accurately.

Mutt view email

Tip: Press ? to entry the built-in assist part at anytime.

Mutt help

Here are a few vital shortcuts

q = Quit
d = Delete
m = Mail (Compose)
r = Reply
y = Send
i = exit (when studying/sending mails)

There are a lot of configuration information made by different customers that you should utilize. Here’s mine which ought to allow you to obtain, learn, ship emails.

set imap_user = [email protected]
set realname = “YOUR NAME”
set from = “[email protected]
set folder = imaps://
set smtp_url = “smtps://[email protected]
set ssl_force_tls = sure
set header_cache = ~/.cache/mutt
set spoolfile = +Inbox
set document = “+Sent”
set postponed = “+Drafts”
set trash = “+Trash”
set editor = “emacs”

The ArchLinux Wiki for Mutt was used as a reference supply for this text.

I did not need to make this a fundamental tutorial, however seeing because the official Wiki was a bit complicated, I wrote one to assist individuals. Maybe I am going to write a follow-up with superior choices, or overview the NeoMutt consumer quickly.

Check Also

A look at the Amazon Prime Video app for Windows 10

Amazon launched its Amazon Prime Video for Windows software this month formally for Microsoft’s Windows …

Leave a Reply

Your email address will not be published. Required fields are marked *